コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: FrmMain.cs プロジェクト: Sopheak088/iThinking
        private void CmdAddCompany_Click(object sender, Janus.Windows.Ribbon.CommandEventArgs e)
        {
            FrmCompany frmCompany = new FrmCompany();

            frmCompany.ShowDialog();
        }