Example #1
0
 public StaffUpdate(string SNo)
 {//修改
     InitializeComponent();
     currentSelectedID = SNo;
     _instance         = this;
     isAdd             = false;
 }
Example #2
0
 public StaffUpdate()
 {//新增
     InitializeComponent();
     currentSelectedID = null;
     isAdd             = true;
     _instance         = this;
 }
Example #3
0
        private void UpdateBtn_Click(object sender, EventArgs e)
        {
            StaffUpdate staffUpdate = new StaffUpdate(currentSelectedID);

            staffUpdate.Show();
        }
Example #4
0
        private void AddBtn_Click(object sender, EventArgs e)
        {
            StaffUpdate staffUpdate = new StaffUpdate();

            staffUpdate.Show();
        }