private void btnAddNew_Click(object sender, EventArgs e) { try { frmIns_Contracts afrmIns_Contracts = new frmIns_Contracts(this); afrmIns_Contracts.Show(); } catch (Exception ex) { MessageBox.Show("frmLst_Contracts.btnAddNew_Click\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnInsContracts_ItemClick(object sender, ItemClickEventArgs e) { try { frmIns_Contracts afrmIns_Contracts = new frmIns_Contracts(); afrmIns_Contracts.Show(); } catch (Exception ex) { MessageBox.Show("frmMain.btnInsContracts_ItemClick\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnContinue_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { int IDSystemUser = Convert.ToInt32(grvContractsExpiring.GetFocusedRowCellValue("IDSystemUser")); frmIns_Contracts afrmIns_Contracts = new frmIns_Contracts(IDSystemUser,this); afrmIns_Contracts.ShowDialog(); }