예제 #1
0
 private void personelEkleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     foreach (Form frm in this.MdiChildren)
     {
         frm.Close();
     }
     eklePersonel           = new PersonelEkle();
     eklePersonel.MdiParent = this;
     eklePersonel.Show();
 }
예제 #2
0
        private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            PersonelEkle gonder = new PersonelEkle();

            gonder.tc         = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            gonder.adi        = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            gonder.soyadi     = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            gonder.maas       = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            gonder.telno      = dataGridView1.CurrentRow.Cells[4].Value.ToString();
            gonder.baslamaTar = dataGridView1.CurrentRow.Cells[5].Value.ToString();
            gonder.medeniHal  = dataGridView1.CurrentRow.Cells[6].Value.ToString();
            gonder.adres      = dataGridView1.CurrentRow.Cells[7].Value.ToString();

            this.Close();
            gonder.ShowDialog();
        }