Ejemplo n.º 1
0
        private void tsCompany_Click(object sender, EventArgs e)
        {
            frmOpenCompany frmOpenCompany = new frmOpenCompany();
            DialogResult   dlgResult      = frmOpenCompany.ShowDialog();

            if (dlgResult == DialogResult.OK)
            {
                //Application.Exit();
                this.Controls.Remove(menuStrip1);
                menuStrip1           = new MenuStrip();
                menuStrip1.ForeColor = System.Drawing.Color.Black;
                this.Controls.Add(menuStrip1);
                FillMenu(Global.CompanyCode);
                tsUser.Text          = "User : "******"Department : " + mdlGlobal.systemUsers.DepartmentCode;
                tsCompany.Text       = "Company : " + Global.CompanyCode + "     ";
                tsStatusVersion.Text = "Version : " + Global.strVersionNo + "     ";
                this.Text            = mdlGlobal.companyInformation.CompanyName;
                Image myimage = new Bitmap(Application.StartupPath + "\\Images\\" + mdlGlobal.companyInformation.WallFileName);
                this.BackgroundImage = myimage;
            }
        }
Ejemplo n.º 2
0
        private void tsCompany_DoubleClick(object sender, EventArgs e)
        {
            frmOpenCompany frmOpenCompany = new frmOpenCompany();

            frmOpenCompany.ShowDialog();
        }