예제 #1
0
        private void InitializingForms()
        {
            // File Group
            frmLogin           = new FormLogin();
            frmLogin.MdiParent = this;

            frmSettings           = new FormSettings();
            frmSettings.MdiParent = this;

            // Master Group
            frmUser           = new FormMasterUser();
            frmUser.MdiParent = this;

            frmMasterCategory           = new FormMasterCategory();
            frmMasterCategory.MdiParent = this;

            frmMasterPrice           = new FormMasterPrice();
            frmMasterPrice.MdiParent = this;

            frmMasterInventory           = new FormMasterInventori();
            frmMasterInventory.MdiParent = this;

            //Transactions Group
            frmSales           = new FormSales();
            frmSales.MdiParent = this;

            frmPurchasing           = new FormPurchasing();
            frmPurchasing.MdiParent = this;

            frmServices           = new FormServices();
            frmServices.MdiParent = this;
        }
예제 #2
0
        /// <summary>
        /// Menu Master Category
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CategoryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (frmMasterCategory == null || frmMasterCategory.IsDisposed)
            {
                frmMasterCategory           = new FormMasterCategory();
                frmMasterCategory.MdiParent = this;
            }

            frmMasterCategory.Show();
        }