예제 #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();
 }