摘要: 1 static string v_txt = "增加,%删除,审核||审核|%反审核|测试,查找,结账||反结账|结账"; 2 3 static void Main(string[] args) 4 { 5 string[] v_str = v_txt.Split(','); 6 List lst1 = new List(); 7 List lst2 = new List(); 8 foreach (string item in v_str) 9 {10... 阅读全文
posted @ 2013-11-22 18:26 影翕 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 命名空间using EnvDTE;using EnvDTE80;private DTE2 _applicationObject;public void AutoAddControl(插件 v_form1) { //得到当前文件的名称 string v_pathfile = _applicationObject.ActiveDocument.FullName; //打开文件 "Form1.Designer.cs" if (!(v_pathfile.EndsWith(".cs"))) { MessageBox.Show("当前文件不是.cs文件&q 阅读全文
posted @ 2013-11-22 12:20 影翕 阅读(1072) 评论(0) 推荐(0) 编辑