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

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