private void btn_ElaveEtDep_Click(object sender, EventArgs e) { Frm_DepartamentFunc FrmDepartamentFunc = new Frm_DepartamentFunc(); Tools.PageDepartment = 0; FrmDepartamentFunc.ShowDialog(); dataGridView_Departament.DataSource = DORM.Select(); }
private void btn_BaxDep_Click(object sender, EventArgs e) { Frm_DepartamentFunc FrmDepartament = new Frm_DepartamentFunc(); FrmDepartament.txt_Adi.Text = dataGridView_Departament.CurrentRow.Cells["Adı"].Value.ToString(); FrmDepartament.txt_Unvan.Text = dataGridView_Departament.CurrentRow.Cells["Ünvan"].Value.ToString(); FrmDepartament.txt_TelNo.Text = dataGridView_Departament.CurrentRow.Cells["Əlaqə No"].Value.ToString(); FrmDepartament.dtp_YaranmaT.Text = dataGridView_Departament.CurrentRow.Cells["Yaranma.T"].Value.ToString(); FrmDepartament.txt_EPosta.Text = dataGridView_Departament.CurrentRow.Cells["Mail"].Value.ToString(); FrmDepartament.txt_Adi.Enabled = false; FrmDepartament.txt_EPosta.Enabled = false; FrmDepartament.txt_TelNo.Enabled = false; FrmDepartament.txt_Unvan.Enabled = false; FrmDepartament.dtp_YaranmaT.Enabled = false; FrmDepartament.ShowDialog(); }
private void btn_RedakteEtDep_Click(object sender, EventArgs e) { Tools.PageDepartment = 1; Frm_DepartamentFunc FrmDepartament = new Frm_DepartamentFunc(); FrmDepartament.departmentID = (int)dataGridView_Departament.CurrentRow.Cells["DepartmentID"].Value; FrmDepartament.txt_Adi.Text = dataGridView_Departament.CurrentRow.Cells["Adı"].Value.ToString(); FrmDepartament.txt_Unvan.Text = dataGridView_Departament.CurrentRow.Cells["Ünvan"].Value.ToString(); FrmDepartament.txt_TelNo.Text = dataGridView_Departament.CurrentRow.Cells["Əlaqə No"].Value.ToString(); FrmDepartament.dtp_YaranmaT.Text = dataGridView_Departament.CurrentRow.Cells["Yaranma.T"].Value.ToString(); FrmDepartament.txt_EPosta.Text = dataGridView_Departament.CurrentRow.Cells["Mail"].Value.ToString(); FrmDepartament.btn_DaxilEt_Deyis.Text = "Dəyiş"; FrmDepartament.ShowDialog(); dataGridView_Departament.DataSource = DORM.Select(); }