예제 #1
0
 private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!FormOpen(new ChangePassword()))
     {
         ChangePassword formChangePassword = new ChangePassword();
         formChangePassword.MdiParent = this;
         FormMain = this;
         formChangePassword.Show();
     }
 }
예제 #2
0
 private void userPermissionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!FormOpen(new RoleMaintanance()))
     {
         RoleMaintanance formRoleMaintanance = new RoleMaintanance();
         formRoleMaintanance.MdiParent = this;
         FormMain = this;
         formRoleMaintanance.Show();
     }
 }
예제 #3
0
 private void reportsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!FormOpen(new ReportMain()))
     {
         ReportMain formReportMain = new ReportMain();
         formReportMain.MdiParent = this;
         FormMain = this;
         formReportMain.Show();
     }
 }
예제 #4
0
        private void statusStrip_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            if (e.ClickedItem.Name.Equals("toolStripStatusLabelInventory"))
            {
                var list = new ItemDAL().CheckInventory();

                if (!FormOpen(new ItemInventory(null)))
                {
                    ItemInventory formItemInventory = new ItemInventory(list);
                    formItemInventory.MdiParent = this;
                    FormMain = this;
                    formItemInventory.Show();
                }

            }
        }
예제 #5
0
 private void processDilyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!FormOpen(new ProcessDailySales()))
     {
         ProcessDailySales formProcessDailySales = new ProcessDailySales();
         formProcessDailySales.MdiParent = this;
         FormMain = this;
         formProcessDailySales.Show();
     }
 }