예제 #1
0
 private void btn_edit_Click(object sender, EventArgs e)
 {
     curr_index = listBox1.SelectedIndex;
     TeacherAddEditForm tc_add = new TeacherAddEditForm(this);
     tc_add.Owner = this;
     tc_add.ShowDialog();
 }
예제 #2
0
 private void btn_add_Click(object sender, EventArgs e)
 {
     curr_index = -1;
     TeacherAddEditForm tc_add = new TeacherAddEditForm(this);
     tc_add.Owner = this;
     tc_add.ShowDialog();
 }