摘要: 1 private void 导出ToolStripMenuItem_Click(object sender, EventArgs e) { 2 string path = ""; 3 SaveFileDialog save = new SaveFileDialog(); 4 save.Defaul 阅读全文
posted @ 2019-07-04 10:22 学海无涯,天道酬勤 阅读(1112) 评论(0) 推荐(0) 编辑
摘要: 准备工作就是可以分页的DataGridView,和两个按钮,一个用来导出当前页数据到Excel,一个用来导出全部数据到Excel 没有使用SaveFileDialog,但却可以弹出保存对话框来 先做导出当前页数据到Excel的 DataGridView命名为dataGridView1 1 //按下导 阅读全文
posted @ 2019-07-04 08:57 学海无涯,天道酬勤 阅读(2919) 评论(0) 推荐(0) 编辑
摘要: 1 public class SQLHelper { 2 private static string connString = ""; 3 public static int Update(string sql) { 4 SqlConnection conn = new SqlConnection( 阅读全文
posted @ 2019-07-03 17:47 学海无涯,天道酬勤 阅读(235) 评论(0) 推荐(0) 编辑
摘要: C#工厂方法 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 工厂方 阅读全文
posted @ 2019-07-01 16:57 学海无涯,天道酬勤 阅读(570) 评论(0) 推荐(0) 编辑
摘要: C# 实现计算机功能 (封装,继承,多态) 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 阅读全文
posted @ 2019-07-01 16:31 学海无涯,天道酬勤 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1 private void gridView1_CustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e) { 2 if (gridView1.GetDataRow(e.Row 阅读全文
posted @ 2019-07-01 10:02 学海无涯,天道酬勤 阅读(360) 评论(0) 推荐(0) 编辑
摘要: private bool ValidateInput() { if (txt_IMSI.Text.Trim()=="") { MessageBox.Show("请输入正确的IMSI","ISMI",MessageBoxButtons.OK,MessageBoxIcon.Exclamation); txt_IM... 阅读全文
posted @ 2019-06-28 15:57 学海无涯,天道酬勤 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 先找到 此时间gridView1_CustomDrawRowIndicator 阅读全文
posted @ 2019-06-28 15:51 学海无涯,天道酬勤 阅读(1195) 评论(0) 推荐(0) 编辑
摘要: 注意,在使用DateAndTime时,需要添加引用 using Microsoft.VisualBasic;否则不可以计算时间之间的差值。 using System; using System.Collections.Generic; using System.ComponentModel; usi 阅读全文
posted @ 2019-06-24 17:31 学海无涯,天道酬勤 阅读(2480) 评论(0) 推荐(0) 编辑
摘要: 1 namespace TCPServer { 2 class Program { 3 static void Main(string[] args) { 4 int port = 888;//端口 5 TcpClient tcpClient;//创建TCP连接对象(存入客服端所链接) 6 IPAd 阅读全文
posted @ 2019-06-20 17:06 学海无涯,天道酬勤 阅读(2332) 评论(0) 推荐(0) 编辑