private void configurarEmpresaToolStripMenuItem_Click(object sender, EventArgs e) { using (frmCompany f = new frmCompany()) { f.ShowDialog(); } }
private void ShowCompanyForm(int id) { frmCompany frm = new frmCompany(); frm.OnDisplayRecord(id); frm.ControlBox = true; frm.FormBorderStyle = FormBorderStyle.Fixed3D; frm.MaximizeBox = false; frm.ShowDialog(); }
private void btnReviewCompanyDetails_Click(object sender, EventArgs e) { if (companyBindingSource.Count > 0) { using (frmCompany frm = new frmCompany()) { frm.txtCompaniesFilterCriteria.Text = ((Data.Models.Company)companyBindingSource.Current).CompanyName.ToString(); frm.ShowDialog(); this.refreshCompanyInfo(); } } }