
C#
文章平均质量分 86
jerryo
这个作者很懒,什么都没留下…
展开
-
c# winform窗体间的传值
说明:本文讲解两个窗体之间的传值,主要用到两个窗体,form1,form21、在form1窗体单击按钮,打开窗体form2,然后把form2中文本框的值传递给form1form1中的代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;usin...转载 2018-06-03 13:29:52 · 978 阅读 · 0 评论 -
c#单例模式
1.简单的思路就是, 创建对象单例的动作转移到另外的行为上面, 利用一个行为去创建对象自身, 如下: public class Singleton { private static Singleton _Singleton = null; public static Singleton CreateInstance() { ...转载 2018-09-05 09:12:28 · 700 阅读 · 0 评论