摘要: class Program { static void Main(string[] args) { Person xc = new Person("小菜"); Console.WriteLine("\n第一种装扮:"); Sneakers pqx = new Sneakers(); BigTrous 阅读全文
posted @ 2022-04-02 10:02 KevinSteven 阅读(66) 评论(0) 推荐(0)
摘要: 定义:定义一个操作中的算法的骨架,而将一些步骤延迟到子类中。模板方法使得子类可以不改变一个算法的结构即可重定义该算法的某些特定步骤。 模板方式模式是通过把不变行为搬移到超类,去除子类中的重复代码来体现它的优势。当不变的和可变的行为在方法的子类实现中混合在一起的时候,不变的行为就会在子类中重复出现。我 阅读全文
posted @ 2022-04-02 09:39 KevinSteven 阅读(230) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { Console.WriteLine("NumberA:"); string NumberA = Console.ReadLine(); Console.WriteLine("NumberB:"); string NumberB = 阅读全文
posted @ 2022-04-02 09:33 KevinSteven 阅读(88) 评论(0) 推荐(0)
摘要: public void AddRootNode() { tv_SystemTree.Nodes.Clear(); foreach (Model_SoftSystem item in softSystem.GetSoftSystemList()) { TreeNode rootNode = tv_Sy 阅读全文
posted @ 2022-03-30 14:46 KevinSteven 阅读(46) 评论(0) 推荐(0)
摘要: public override List<ModelParent> GetList(int pageIndex, int pageLength, string keyword, int id, ref int DataCount) { DataList = Code.BLLInterface.Get 阅读全文
posted @ 2022-02-28 15:21 KevinSteven 阅读(362) 评论(0) 推荐(0)
摘要: DataList = Code.BLLInterface.GetList(new Model_ProgramRequest(), FilePath, new Model_ProgramRequest().ClassName); List<Model_ProgramRequest> list = Da 阅读全文
posted @ 2022-02-28 15:17 KevinSteven 阅读(256) 评论(0) 推荐(0)
摘要: //使用ConfigTool自动创建ini配置文件,保存系统配置参数。新建的文件保存在相对路径Config文件夹下。没有Config文件夹,需要手动创建文件夹,或是系统自动创建文件夹 public static bool bSortByDeviceName { get { return Tool.C 阅读全文
posted @ 2022-02-28 15:09 KevinSteven 阅读(733) 评论(0) 推荐(0)
摘要: /// <summary> /// 创建Conifg文件夹 /// </summary> public static void CreadConfigFile() { try { string path = Application.StartupPath + "\\Config"; if (!Fil 阅读全文
posted @ 2022-02-28 15:03 KevinSteven 阅读(442) 评论(0) 推荐(0)
摘要: 数据写入XML public static void WriteXML<T>(List<T> overview, string path) { FileInfo fInfo = new FileInfo(path); if (!fInfo.Directory.Exists) { fInfo.Dire 阅读全文
posted @ 2022-02-28 15:01 KevinSteven 阅读(308) 评论(0) 推荐(0)
摘要: private bool flag1 = true; private string ImgClosePath = Application.StartupPath.Replace("\\bin\\Debug", "\\Image") + "\\gaitubao_close_png.png"; //图片 阅读全文
posted @ 2022-02-28 14:54 KevinSteven 阅读(190) 评论(0) 推荐(0)