dianzhi2128
码龄9年
关注
提问 私信
  • 博客:7,377
    7,377
    总访问量
  • 暂无
    原创
  • 2,276,922
    排名
  • 0
    粉丝
  • 0
    铁粉
  • 加入CSDN时间: 2016-03-16
博客简介:

dianzhi2128的博客

查看详细资料
  • 原力等级
    领奖
    当前等级
    0
    当前总分
    0
    当月
    0
个人成就
  • 获得1次点赞
  • 内容获得0次评论
  • 获得6次收藏
创作历程
  • 21篇
    2018年
  • 2篇
    2017年
  • 1篇
    2014年
创作活动更多

如何做好一份技术文档?

无论你是技术大神还是初涉此领域的新手,都欢迎分享你的宝贵经验、独到见解与创新方法,为技术传播之路点亮明灯!

357人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

c# WinForm Menu自动生成

1.将采用递归的方式生成窗体菜单,并且添加其事件响应 Type t = typeof(frmMain); private void GenerateMenu(ToolStripItemCollection parentItem, List<SpinSystem.Domain.Main.Menu> menus,string paentId...
转载
发布博客 2018.05.18 ·
240 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

c#report基本操作赋值

 //第一步:清除之前的数据 this.rptView.LocalReport.DataSources.Clear(); //第二步:指定报表路径 this.rptView.LocalReport.ReportPath = "Report2.rdlc"; //第三步:构造新的DataTable DataTable dt = new DataTable("...
转载
发布博客 2018.05.05 ·
514 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

触发DataGridView的CellClick事件

usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;...
转载
发布博客 2018.06.16 ·
1536 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

Dtagridview 光标定位最后行的方法 - 转自:jin_yao_chi的博客

定位行:1.BindingSource.MoveLast();2.dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.Rows. Count-1;定位单元格:1.dataGridView1.FirstDisplayedCell = dataGridView1.Rows[xxx].Cells[0]; 2...
转载
发布博客 2018.04.30 ·
248 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

策略模式

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WindowsFormsApplication3{ abstract class CashSuper { public abstract d...
转载
发布博客 2018.05.08 ·
117 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C#排序功能-顺便求最大值

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.OleDb;using Microsoft.Office.Interop.Excel;namespace Consol...
转载
发布博客 2018.04.28 ·
244 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

判断线程30分钟后没有执行完就kill掉

using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms;using System.Data;using System.IO;using System.Collections;using System.Threading;usin...
转载
发布博客 2018.05.03 ·
220 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

使用Microsoft.Office.Interop.Excel提取Excel文件数据

将Excel数据提取出来放到二维数组中:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.OleDb;using Microsoft.Office.Interop.Exce...
转载
发布博客 2018.04.28 ·
647 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C#对XML文件的操作

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.OleDb;using Microsoft.Office.Interop.Excel;using System.Xml;...
转载
发布博客 2018.04.28 ·
96 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

过滤DataSet/DataTable的数据

过滤DataSet/DataTable的数据方法一:ds.Tables[0].DefaultView.RowFilter="name='"+textBox1.Text+"'";DataTabledt=ds.Tables[0].DefaultView.ToTable();dataGridView1.DataSource=dt;方法二:Select(...
转载
发布博客 2018.04.28 ·
204 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C# 简单序列化与反序列化

//序列化 public void Serialize(Book book) { using (FileStream fs = new FileStream(strFile, FileMode.Create)...
转载
发布博客 2018.04.28 ·
93 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

VS2010快捷键-转别人的

Ctrl+E,D ----格式化全部代码Ctrl+E,F ----格式化选中的代码CTRL + SHIFT + B生成解决方案CTRL + F7 生成编译CTRL + O 打开文件CTRL + SHIFT + O打开项目CTRL + SHIFT + C显示类视图窗口F4 显示属性窗口...
转载
发布博客 2018.04.28 ·
83 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Dictionary 类提取键与值

private void button1_Click(object sender, EventArgs e) { Dictionary<string, string> List = new Dictionary<string, string>(); List.Add("1", "A"); ...
转载
发布博客 2018.04.28 ·
297 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

动软代码生成器-生成模型填充代码

让开发者方便地生成数据层填充代码<#@ template language="c#" HostSpecific="True" #><#@ output extension= ".cs" #><# TableHost host = (TableHost)(Host); host.NameSpace = "SPC";...
转载
发布博客 2018.04.28 ·
112 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C# IO 文件读写操作

StreamReader sr = new StreamReader(Directory.GetCurrentDirectory() + "\\test.txt")string line;while ((line = sr.ReadLine()) != null){ Console.WriteLine(line);}写操作...
转载
发布博客 2018.04.26 ·
267 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

MS Chart 折线图点击数据点时显示其值

对于MS Chart当鼠标移动到数据点时或鼠标点击数据点时显示其点的值(X,Y)值 public partial class Form1 : Form { System.Windows.Forms.DataVisualization.Charting.ToolTipEventArgs toolTipEventArgs; pub...
转载
发布博客 2018.04.28 ·
1066 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

c# 小票打印功能

using System;using System.Collections.Generic;using System.Linq;using System.Printing;using System.Text;using System.Threading.Tasks;namespace PrintCore{ public static clas...
转载
发布博客 2018.04.26 ·
548 阅读 ·
1 点赞 ·
0 评论 ·
1 收藏

C#常用字符串截取

1 取字符串的前i个字符 str=str.Substring(0,i); // or str=str.Remove(i,str.Length-i); 2 去掉字符串的前i个字符: str=str.Remove(0,i); // or str=str.Substring(i); 3 从右边开始取i个字符: str=str.Substring(str.L...
转载
发布博客 2018.04.26 ·
88 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Observer(观察者模式)

Observer 定义一个一对多的依赖关系,让多个观察者对象同时监听某一个主题,这个主意对象在状态发生变化时会通知所有观察者对象,使它们能够自动更新自己.抽象主题(Subject) : 对观察者对象的引用保存在一个聚集里,提供一个接口,可增加和删除观察者对象.具体主题(ConcreteSubject) : 其内部状态改变时,给所有登记过的观察者发出通知.抽象观察者(Ob...
转载
发布博客 2017.08.24 ·
93 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

求两个数的奇数范围的和

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class Program { ...
转载
发布博客 2014.01.26 ·
206 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多