private void btnComAdd_Click(object sender, EventArgs e) { FrmCompany frm = new FrmCompany(); frm.StartPosition = FormStartPosition.CenterScreen; frm.ShowInTaskbar = false; frm.FormBorderStyle = FormBorderStyle.FixedToolWindow; frm.TopMost = true; //DialogResult result = frm.ShowDialog(); }
private void MDIParent_Load(object sender, EventArgs e) { if (DataAccessLayer.Common.ClsGlobal.ShowLoginForm == true) { Common.UserLogin frm = new Common.UserLogin(); frm.ShowDialog(); } if (DataAccessLayer.Common.ClsGlobal.ShowCompanyCreate == true) { FrmCompany frm = new FrmCompany(); frm.ShowDialog(); } if (DataAccessLayer.Common.ClsGlobal.ShowCompanyList == true) { Common.CompanyList frm = new Common.CompanyList(); frm.ShowDialog(); } SelectMaster(); }
private void CmdAddCompany_Click(object sender, Janus.Windows.Ribbon.CommandEventArgs e) { FrmCompany frmCompany = new FrmCompany(); frmCompany.ShowDialog(); }