示例#1
0
文件: Form1.cs 项目: lozzr1012/T_LAB
 private void label4_Click(object sender, EventArgs e)
 {
     DialogResult myResult = MessageBox.Show("您初次使用嗎?", "使用者登入確認", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
     if (myResult == DialogResult.Yes)
     {
         Form3 frm = new Form3(this);
         frm.ShowDialog();
     }
     else if (myResult == DialogResult.No)
     {
         //按了否
     }
     /*Thread collectThread = new Thread(new ThreadStart(ThreadMethod_collect));
     collectThread.Name = "蒐集工作執行緒";
     collectThread.Start();
     while (collectThread.ThreadState != ThreadState.Stopped)
     {
     }*/
 }
示例#2
0
文件: Form2.cs 项目: lozzr1012/T_LAB
 //public int VersionNum = 1;
 public Form2(Form3 f3,string Name)
 {
     InitializeComponent();
     F3 = f3;
 }