Exemple #1
0
        private void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
          DataGridViewCellCollection cells =  this.dataGridView1.CurrentRow.Cells;
           Teacher t = new Teacher();

          t.name       =  cells[0].Value.ToString();  
          t.sex        =  cells[1].Value.ToString(); 
          t.birth      =  cells[2].Value.ToString(); 
          t.minzu      =  cells[3].Value.ToString(); 
          t.xueli      =  cells[4].Value.ToString(); 
          t.zzmm       =  cells[5].Value.ToString(); 
          t.zhicheng   =  cells[6].Value.ToString(); 
          t.xuexiao    =  cells[7].Value.ToString(); 
          t.tel        =  cells[8].Value.ToString(); 
          t.address    =  cells[9].Value.ToString();


          GlobalConf.teacher = t;

            teacher teacher = new teacher(this);
            teacher.Show();  

        }
Exemple #2
0
 private void btn_reset_Click(object sender, EventArgs e)
 {
     this.Close(); 
     teacher teacher = new teacher();
     teacher.Show();
 }
Exemple #3
0
 private void menu_teacher_add_Click(object sender, EventArgs e)
 {
     teacher teacher = new teacher(this); 
     teacher.Show();
      
 }