private void dgvApplyDetails_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (tabControl1.SelectedIndex == 0) { frmAlterApplication faa = new frmAlterApplication(applicationInfo); if (faa.ShowDialog() == DialogResult.OK) { this.GetApplicationDetail(); } } else if (tabControl1.SelectedIndex == 1) { frmAlterStoreApplication fasa = new frmAlterStoreApplication(applicationInfo, "Deliver"); if (fasa.ShowDialog() == DialogResult.OK) { this.GetApplicationDetail(); } } else if (tabControl1.SelectedIndex == 2) { frmAlterStoreApplication fasa = new frmAlterStoreApplication(applicationInfo, "Receipt"); if (fasa.ShowDialog() == DialogResult.OK) { this.GetApplicationDetail(); } } }
private void btnEdit_Click(object sender, EventArgs e) { if (tabControl1.SelectedIndex == 0) { frmAlterApplication faa = new frmAlterApplication(applicationInfo); if (faa.ShowDialog() == DialogResult.OK) { this.GetApplicationDetail(); } } else if (tabControl1.SelectedIndex == 1) { frmAlterStoreApplication fasa = new frmAlterStoreApplication(applicationInfo, "Deliver"); if (fasa.ShowDialog() == DialogResult.OK) { this.GetApplicationDetail(); } } else if (tabControl1.SelectedIndex == 2) { frmAlterStoreApplication fasa = new frmAlterStoreApplication(applicationInfo, "Receipt"); if (fasa.ShowDialog() == DialogResult.OK) { this.GetApplicationDetail(); } } }