예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            lotteryall f2 = lotteryall.GetSingleton();

            //f2.ID = ID;
            //f2.ChangeText += new ChangeTextHandler(Change_Text);//将事件和处理方法绑在一起,这句话必须放在f2.ShowDialog();前面
            f2.Show();
            //frm.Show();
            f2.Activate();
        }
예제 #2
0
        private void btnsubmit_Click(object sender, EventArgs e)
        {
            lotteryall f2 = lotteryall.GetSingleton();

            f2.ID          = ID;
            f2.name        = name;
            f2.no          = no;
            f2.dept        = dept;
            f2.ChangeText += new ChangeTextHandler(Change_Text);//将事件和处理方法绑在一起,这句话必须放在f2.ShowDialog();前面
            f2.Show();
        }
예제 #3
0
 public static lotteryall GetSingleton()
 {
     if (frm == null || frm.IsDisposed)
     {
         //frm.ID = uID;
         //frm.name = uname;
         //frm.no = uno;
         //frm.dept = udept;
         frm = new lotteryall();
     }
     return(frm);
 }
예제 #4
0
        private void button2_Click(object sender, EventArgs e)
        {
            lotteryall f2 = lotteryall.GetSingleton();

            f2.Visible = false;
        }