Beispiel #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            TempData.flag = 1;                //TempData.flag为全局变量,传递给editstudent1窗体
            Form myform = new editworker1();

            myform.ShowDialog();            //采用有模式方式调用
            this.editworker_Load(sender, e);
        }
Beispiel #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     TempData.flag = 2;               //TempData.flag为全局变量,传递给editworker1窗体
     if (TempData.no != "")
     {
         Form myform = new editworker1();
         myform.ShowDialog();        //采用有模式方式调用
         this.editworker_Load(sender, e);
         dataGridView1.Refresh();
     }
     else
     {
         MessageBox.Show("先选择要修改的职工记录", "信息提示");
     }
 }