Exemple #1
0
 /// <summary>
 /// 实例化一个关于系统的窗口对象
 /// </summary>
 /// <param name="softName">应用程序的名称</param>
 /// <param name="sv">系统的版本</param>
 /// <param name="yearStart">应用起始年份</param>
 /// <param name="belongName">本系统的版权归属人</param>
 public FormAbout(string softName, SystemVersion sv, int yearStart, string belongName)
 {
     InitializeComponent();
     SoftName   = softName;
     SV         = sv;
     YearStart  = yearStart;
     BelongName = belongName;
     Icon       = UserSystem.GetFormWindowIcon();
 }
Exemple #2
0
 /// <summary>
 /// 实例化一个窗口支持输出和响应
 /// </summary>
 /// <param name="action">响应的方法</param>
 /// <param name="text_default">默认的数据</param>
 /// <param name="caption">标题</param>
 /// <param name="length">允许输入的文本的最大长度</param>
 public FormInputAndAction(Func <string, bool> action, string text_default = "", string caption = "请输入数据", int length = 1000)
 {
     InitializeComponent();
     ButtonAction = action;
     Caption      = caption;
     InputLength  = length;
     DefaultStr   = text_default;
     Icon         = UserSystem.GetFormWindowIcon();
 }
 /// <summary>
 /// 实例化一个耗时处理的对象
 /// </summary>
 /// <param name="description">需要显示的文本描述</param>
 /// <param name="action">需要操作的方法</param>
 public FormMatterRemind(
     string description,
     Action action
     )
 {
     InitializeComponent();
     Description    = description;
     DealWithResult = action;
     DoubleBuffered = true;
     Icon           = UserSystem.GetFormWindowIcon();
 }
Exemple #4
0
 /// <summary>
 /// 实例化一个检查输入密码的窗口
 /// </summary>
 /// <param name="pass">需要配对的密码</param>
 public FormPasswordCheck(string pass)
 {
     InitializeComponent();
     password = pass;
     Icon     = UserSystem.GetFormWindowIcon();
 }
Exemple #5
0
 /// <summary>
 /// 实例化一个版本信息说明的窗口对象
 /// </summary>
 /// <param name="sv">系统的版本号</param>
 public FormAboutVersion(SystemVersion sv)
 {
     InitializeComponent();
     m_SystemVersion = sv;
     Icon            = UserSystem.GetFormWindowIcon();
 }