摘要: var str1 = Properties.Resources.ResourceManager.GetObject("String1", null); string url = System.Configuration.ConfigurationManager.AppSettings["url"]; //获得配置文件下的值 阅读全文
posted @ 2018-11-07 11:35 enych 阅读(3150) 评论(0) 推荐(0) 编辑
摘要: C# 打开另一个窗体,(模态对话框) Form1 frm= new Form1(); //创建对象 DialogResult retServer = frm.ShowDialog(); //模式对话框 if (retServer == DialogResult.OK) { InitConnectString(); } else { return; } 另一个窗体的保存按钮代码 this.Dial... 阅读全文
posted @ 2018-11-07 11:27 enych 阅读(2007) 评论(0) 推荐(0) 编辑
摘要: string str1 = "123AAA456AAAA789AAAAAAA1011"; string str2 = "123456789AAA23456789AAAA3456789AAAAAAA4567890"; string str3 = "123456788AAA23456789AAAA3456789AAAAAAA4567890"; ... 阅读全文
posted @ 2018-11-07 11:05 enych 阅读(5546) 评论(0) 推荐(0) 编辑