Ejemplo n.º 1
0
        public StockWindow()
        {
            InitializeComponent();
            ApplicationDesign.btnSubSubMenuObject = btnStock;
            object o = (object)btnStock;

            ApplicationDesign.SetSubSubButtonDesign(ref o);
        }
Ejemplo n.º 2
0
        public SettingsWindow()
        {
            InitializeComponent();
            ApplicationDesign.btnSubMenuObject = btnOrgSettings;
            object o = (object)btnOrgSettings;

            ApplicationDesign.SetSubButtonDesign(ref o);
        }
Ejemplo n.º 3
0
        //private PurchaseBillingWindow frmPurchasebillingwindow;
        public CustomerWindows()
        {
            InitializeComponent();
            ApplicationDesign.btnSubMenuObject = btnCustomer;
            object o = (object)btnCustomer;

            ApplicationDesign.SetSubButtonDesign(ref o);
        }
Ejemplo n.º 4
0
        public TransectionWindow()
        {
            InitializeComponent();
            ApplicationDesign.btnSubMenuObject = btnCashBook;
            object o = (object)btnCashBook;

            ApplicationDesign.SetSubButtonDesign(ref o);
        }
Ejemplo n.º 5
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            ApplicationUpdate frmothersSettings = new ApplicationUpdate();

            frmothersSettings.ShowDialog();
        }
Ejemplo n.º 6
0
        public PurchaseWindows()
        {
            InitializeComponent();
            ApplicationDesign.btnSubSubMenuObject = btnBillEntry;
            object o = (object)btnBillEntry;

            ApplicationDesign.SetSubSubButtonDesign(ref o);
        }
Ejemplo n.º 7
0
        public SalesWindows()
        {
            InitializeComponent();
            ApplicationDesign.btnSubMenuObject = btnInvoice;
            object o = (object)btnInvoice;

            ApplicationDesign.SetSubButtonDesign(ref o);
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 10
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();
        }
Ejemplo n.º 11
0
        private void btnStockEntryHistory_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubSubButtonDesign(ref sender);
            frmProductEntryHistory                 = new ProductEntryHistory();
            frmProductEntryHistory.WindowState     = FormWindowState.Maximized;
            frmProductEntryHistory.FormBorderStyle = FormBorderStyle.None;
            frmProductEntryHistory.TopLevel        = false;

            currentForm = frmProductEntryHistory;
            frmProductEntryHistory.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmProductEntryHistory);
            frmProductEntryHistory.Show();
        }
Ejemplo n.º 12
0
        private void btnStock_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubSubButtonDesign(ref sender);
            frmStockList                 = new StockList();
            frmStockList.WindowState     = FormWindowState.Maximized;
            frmStockList.FormBorderStyle = FormBorderStyle.None;
            frmStockList.TopLevel        = false;

            currentForm       = frmStockList;
            frmStockList.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmStockList);
            frmStockList.Show();
        }
Ejemplo n.º 13
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();
        }
Ejemplo n.º 14
0
        private void btnPurchaseReturn_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubSubButtonDesign(ref sender);

            frmNoteAndVoucherList                 = new NoteAndVoucherList(NoteAndVoucherList._Type.Debit_Note);
            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();
        }
Ejemplo n.º 15
0
        private void btnbill_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubSubButtonDesign(ref sender);

            frmPurchasebillingwindow                 = new PurchaseBillingWindow();
            frmPurchasebillingwindow.WindowState     = FormWindowState.Maximized;
            frmPurchasebillingwindow.FormBorderStyle = FormBorderStyle.None;
            frmPurchasebillingwindow.TopLevel        = false;

            currentForm = frmPurchasebillingwindow;
            frmPurchasebillingwindow.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmPurchasebillingwindow);
            frmPurchasebillingwindow.Show();
        }
Ejemplo n.º 16
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();
        }
Ejemplo n.º 17
0
        public MainWindow()
        {
            InitializeComponent();
            AppInfo();
            GetButtonControl();
            pnlLogin.BringToFront();
            this.FormBorderStyle = FormBorderStyle.None;
            ThisMaximize();

            mPreviousSize = new Size(859, 517);
            int x = (this.Width - Screen.PrimaryScreen.WorkingArea.Width) / 2;
            int y = (this.Height - Screen.PrimaryScreen.WorkingArea.Height) / 2;

            mPreviousLocation = new Point(x, y);

            ApplicationDesign.btnObject = btnDashBoard;
            object o = (object)btnDashBoard;

            ApplicationDesign.SetButtonDesign(ref o);
            //Arup
            ChangeDateFormate();
            AccessPermission.GrantAccess();
        }