コード例 #1
0
        //private PurchaseBillingWindow frmPurchasebillingwindow;
        public CustomerWindows()
        {
            InitializeComponent();
            ApplicationDesign.btnSubMenuObject = btnCustomer;
            object o = (object)btnCustomer;

            ApplicationDesign.SetSubButtonDesign(ref o);
        }
コード例 #2
0
        public TransectionWindow()
        {
            InitializeComponent();
            ApplicationDesign.btnSubMenuObject = btnCashBook;
            object o = (object)btnCashBook;

            ApplicationDesign.SetSubButtonDesign(ref o);
        }
コード例 #3
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            ApplicationUpdate frmothersSettings = new ApplicationUpdate();

            frmothersSettings.ShowDialog();
        }
コード例 #4
0
        public InventoryWindow()
        {
            InitializeComponent();
            ApplicationDesign.btnSubMenuObject = btnStock;
            object o = (object)btnStock;

            ApplicationDesign.SetSubButtonDesign(ref o);
        }
コード例 #5
0
        public SettingsWindow()
        {
            InitializeComponent();
            ApplicationDesign.btnSubMenuObject = btnOrgSettings;
            object o = (object)btnOrgSettings;

            ApplicationDesign.SetSubButtonDesign(ref o);
        }
コード例 #6
0
        public SalesWindows()
        {
            InitializeComponent();
            ApplicationDesign.btnSubMenuObject = btnInvoice;
            object o = (object)btnInvoice;

            ApplicationDesign.SetSubButtonDesign(ref o);
        }
コード例 #7
0
        private void button1_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);
            frmCashBook                 = new CashBook(CashBook._Type.CASH);
            frmCashBook.WindowState     = FormWindowState.Maximized;
            frmCashBook.FormBorderStyle = FormBorderStyle.None;
            frmCashBook.TopLevel        = false;

            currentForm      = frmCashBook;
            frmCashBook.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmCashBook);
            frmCashBook.Show();
        }
コード例 #8
0
        private void btnOthersSeting_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            OtherSettings frmothersSettings = new OtherSettings();

            frmothersSettings.WindowState     = FormWindowState.Maximized;
            frmothersSettings.FormBorderStyle = FormBorderStyle.None;
            frmothersSettings.TopLevel        = false;

            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmothersSettings);
            frmothersSettings.Show();
        }
コード例 #9
0
        private void btnOrgSettings_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            CreateCompany frmCreateCompany = new CreateCompany(false);

            frmCreateCompany.WindowState     = FormWindowState.Maximized;
            frmCreateCompany.FormBorderStyle = FormBorderStyle.None;
            frmCreateCompany.TopLevel        = false;

            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmCreateCompany);
            frmCreateCompany.Show();
        }
コード例 #10
0
        private void btnCustomer_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            frmCustomerWindow                 = new CustomerList();
            frmCustomerWindow.WindowState     = FormWindowState.Maximized;
            frmCustomerWindow.FormBorderStyle = FormBorderStyle.None;
            frmCustomerWindow.TopLevel        = false;

            currentForm            = frmCustomerWindow;
            frmCustomerWindow.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmCustomerWindow);
            frmCustomerWindow.Show();
        }
コード例 #11
0
        private void btnExpenses_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            frmTransectionList                 = new TransectionList();
            frmTransectionList.WindowState     = FormWindowState.Maximized;
            frmTransectionList.FormBorderStyle = FormBorderStyle.None;
            frmTransectionList.TopLevel        = false;

            currentForm             = frmTransectionList;
            frmTransectionList.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmTransectionList);
            frmTransectionList.Show();
        }
コード例 #12
0
        private void btnPurchase_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            frmPurchaseWindows                 = new PurchaseWindows();
            frmPurchaseWindows.WindowState     = FormWindowState.Maximized;
            frmPurchaseWindows.FormBorderStyle = FormBorderStyle.None;
            frmPurchaseWindows.TopLevel        = false;

            currentForm             = frmPurchaseWindows;
            frmPurchaseWindows.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmPurchaseWindows);
            frmPurchaseWindows.Show();
        }
コード例 #13
0
        private void btnRefund_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            frmNoteAndVoucherList                 = new NoteAndVoucherList(NoteAndVoucherList._Type.Refund_Voucher);
            frmNoteAndVoucherList.WindowState     = FormWindowState.Maximized;
            frmNoteAndVoucherList.FormBorderStyle = FormBorderStyle.None;
            frmNoteAndVoucherList.TopLevel        = false;

            currentForm = frmNoteAndVoucherList;
            frmNoteAndVoucherList.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmNoteAndVoucherList);
            frmNoteAndVoucherList.Show();
        }
コード例 #14
0
        private void btnBanking_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            frmBankWindow = new BankWindow();
            //frmAdvanceReceiptList = new NoteAndVoucherList();
            frmBankWindow.WindowState     = FormWindowState.Maximized;
            frmBankWindow.FormBorderStyle = FormBorderStyle.None;
            frmBankWindow.TopLevel        = false;

            currentForm        = frmBankWindow;
            frmBankWindow.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmBankWindow);
            frmBankWindow.Show();
        }
コード例 #15
0
 private void btnStock_Click(object sender, EventArgs e)
 {
     ApplicationDesign.SetSubButtonDesign(ref sender);
     if (frmStockWindow != null)
     {
         frmStockWindow                 = new StockWindow();
         frmStockWindow.WindowState     = FormWindowState.Maximized;
         frmStockWindow.FormBorderStyle = FormBorderStyle.None;
         frmStockWindow.TopLevel        = false;
     }
     currentForm         = frmStockWindow;
     frmStockWindow.Size = pnlWindow.Size;
     pnlWindow.Controls.Clear();
     pnlWindow.Controls.Add(frmStockWindow);
     frmStockWindow.Show();
 }