public frmAddSalaryType(int SalaryI,string name,string descript,string ContractNam,decimal basicSalary,frmListTypeSalarys parent) { InitializeComponent(); SalaryName = name; SalaryDescription = descript; ContractName= ContractNam; SalaryBasic = basicSalary; SalaryID= SalaryI; frmParent = parent; if (SalaryI == -1) btnAdd.Text = "Thêm"; else btnAdd.Text = "Cập Nhật"; }
public frmAddSalaryType(int SalaryI, string name, string descript, string ContractNam, decimal basicSalary, frmListTypeSalarys parent) { InitializeComponent(); SalaryName = name; SalaryDescription = descript; ContractName = ContractNam; SalaryBasic = basicSalary; SalaryID = SalaryI; frmParent = parent; if (SalaryI == -1) { btnAdd.Text = "Thêm"; } else { btnAdd.Text = "Cập Nhật"; } }
private void menuItem4_Click_1(object sender, EventArgs e) { if (CheckMdiClientDuplicates("frmListTypeSalarys")) { frmListTypeSalarys frm = new frmListTypeSalarys(); frm.MdiParent = this; frm.Show(); } }