예제 #1
0
        public void openStartForm()
        {
            switch (user.access)
            {
            case 1:
                DirectorStarterForm dform = new DirectorStarterForm();
                dform.TopLevel  = false;
                dform.MdiParent = this;
                dform.Show();
                miContrDir.Visible = true;
                break;

            case 2:
                ManagerStarterForm mform = new ManagerStarterForm();
                mform.TopLevel  = false;
                mform.MdiParent = this;
                mform.Show();
                miContrMan.Visible = true;
                break;

            case 3:
                CashierStarterForm cform = new CashierStarterForm();
                cform.TopLevel  = false;
                cform.MdiParent = this;
                cform.Show();
                miContrCas.Visible = true;
                break;

            default:
                break;
            }
        }
예제 #2
0
        private void аптекарToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CashierStarterForm form = new CashierStarterForm();

            form.TopLevel  = false;
            form.MdiParent = this;
            form.Show();
        }