private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { frmDüzenle FormGüncelle = new frmDüzenle(); FormGüncelle.txtTcKimlik.Text = lblTcnoGizli.Text; FormGüncelle.ShowDialog(); }
private void btnDüzenle_Click(object sender, EventArgs e) { if (lblPerAdSoyadGizli.Text == "label2") { MessageBox.Show("Herhangi bir personel seçilmedi!" + Environment.NewLine + "" + Environment.NewLine + "Düzenlemek istediğiniz personeli seçip tekrar deneyiniz", "Dikkat", MessageBoxButtons.OK, MessageBoxIcon.Information); //MessageBox.Show("Persenel bilgileri güncelleştirildi", "Başarılı", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { frmDüzenle FormGüncelle = new frmDüzenle(); FormGüncelle.txtTcKimlik.Text = lblTcnoGizli.Text; FormGüncelle.ShowDialog(); } }