Exemplo n.º 1
1
 public ProductSliderPane(InventoryView inventory, Panel panel, MasterController masterController)
     : base(masterController, panel, DOCKSTYLE_TYPE)
 {
     InitializeComponent();
     this.inventoryView = inventory;
     this.dbController = masterController.DataBaseController;
 }
Exemplo n.º 2
0
 public LoginControl(LoginPane loginPane, MasterController masterController, Panel panel)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     this.loginPane = loginPane;
     base.masterController.EmployeeLogout += masterController_EmployeeLogout;
 }
Exemplo n.º 3
0
 public UserAdministration(MasterController masterController, int index)
     : base(masterController)
 {
     InitializeComponent();
     changedTab(index);
     dbController = masterController.DataBaseController;
 }
Exemplo n.º 4
0
 public StaffMenuList(MasterController masterController, MenuBar menuBar):base(masterController)
 {
     menuControls = new List<MenuControl> { 
          new MenuControl(new CustomerInformationView(masterController), menuBar),
          new MenuControl(new OrdersView(masterController), menuBar),
     }; 
 }
Exemplo n.º 5
0
 public Orders(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
     initTable();
 }
Exemplo n.º 6
0
 public UserSettingsControl(Panel panel, MasterController masterController) : base(masterController, panel, false)
 {
     InitializeComponent();
     this.masterController.setUserSettingsControl = this;
     masterController.EmployeeLogin += masterController_EmployeeLogin;
     TabStop = false;
 }
 public UserSettingsControl(Panel panel, MasterController masterController):base(masterController, panel, false)
 {
     InitializeComponent();
     this.masterController.setUserSettingsControl = this;
     masterController.EmployeeLogin += masterController_EmployeeLogin;
     TabStop = false;
 }
Exemplo n.º 8
0
 public StaffMenuList(MasterController masterController, MenuBar menuBar) : base(masterController)
 {
     menuControls = new List <MenuControl> {
         new MenuControl(new CustomerInformationView(masterController), menuBar),
         new MenuControl(new OrdersView(masterController), menuBar),
     };
 }
Exemplo n.º 9
0
 public ProductSliderPane(InventoryView inventory, Panel panel, MasterController masterController)
     : base(masterController, panel, DOCKSTYLE_TYPE)
 {
     InitializeComponent();
     this.inventoryView = inventory;
     this.dbController  = masterController.DataBaseController;
 }
Exemplo n.º 10
0
 public LoginControl(LoginPane loginPane, MasterController masterController, Panel panel)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     this.loginPane = loginPane;
     base.masterController.EmployeeLogout += masterController_EmployeeLogout;
 }
Exemplo n.º 11
0
        public frmMain()
        {
            InitializeComponent();
            // Initialize the panels
            masterController             = new MasterController(this, mainPanel);
            titleBar                     = new Titlebar(panelHeader, masterController);
            menuBar                      = new MenuBar(panelSidebar, masterController);
            userSettingsControl          = new UserSettingsControl(userControlPanel, masterController);
            loginPane                    = new LoginPane(masterController);
            back1.accessMasterController = masterController;


            // EventHandler hooking
            masterController.EmployeeLogin  += masterController_EmployeeLogin;
            masterController.EmployeeLogout += masterController_EmployeeLogout;
            masterController.ContentChanged += new EventHandler <ContentArgs>(masterController_ContentChange);

            // Initialize DatabaseController
            try
            {
                BackgroundWorker worker = new BackgroundWorker();
                worker.DoWork += worker_DoWork;
                worker.RunWorkerAsync();
            }
            catch (InvalidOperationException iex)
            {
                ErrorLog.Log(iex);
            }
            catch (Exception ex)
            {
                ErrorLog.Log(ex);
            }

            displayOnSmall();
        }
Exemplo n.º 12
0
 public CustomerInformationView(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
     orderSliderPane1.accessMasterController = masterController;
     existingClientTable = new DataTable();
 }
Exemplo n.º 13
0
        public frmMain()
        {
            InitializeComponent();
            // Initialize the panels 
            masterController = new MasterController(this, mainPanel);
            titleBar = new Titlebar(panelHeader, masterController);
            menuBar = new MenuBar(panelSidebar, masterController);
            userSettingsControl = new UserSettingsControl(userControlPanel, masterController);
            loginPane = new LoginPane(masterController);

            // EventHandler hooking
            masterController.EmployeeLogin += masterController_EmployeeLogin;
            masterController.EmployeeLogout += masterController_EmployeeLogout;
            masterController.ContentChange += new EventHandler<ContentArgs>(masterController_ContentChange);

            // Initialize DatabaseController
            try
            {
                BackgroundWorker worker = new BackgroundWorker();
                worker.DoWork += worker_DoWork;
                worker.RunWorkerAsync();
            }
            catch (InvalidOperationException iex)
            {
                ErrorLog.Log(iex);
            }
            catch (Exception ex)
            {
                ErrorLog.Log(ex);
            }

            displayOnSmall();
        }
Exemplo n.º 14
0
 public SliderPane(MasterController masterController, Panel panel, DockStyle dockStyle)
     : base(masterController, panel, dockStyle)
 {
     InitializeComponent();
     width = min_width;
     StateChange += SliderPane_StateChange;
 }
Exemplo n.º 15
0
        public Home(MasterController masterController)
            : base(masterController)
        {
            InitializeComponent();
            this.dbController = masterController.DataBaseController;

            critical = new DataGridViewCellStyle()
            {
                BackColor          = rectangleShape1.BackColor,
                SelectionBackColor = rectangleShape1.BackColor,
            };

            warning = new DataGridViewCellStyle()
            {
                BackColor          = rectangleShape2.BackColor,
                SelectionBackColor = rectangleShape2.BackColor,
            };

            normal = new DataGridViewCellStyle()
            {
                Font = new Font("Times New Roman", 14, FontStyle.Regular),
                SelectionBackColor = Color.White,
                SelectionForeColor = Color.Black,
            };

            cellHeader = new DataGridViewCellStyle()
            {
                Font     = new Font("Times New Roman", 14, FontStyle.Regular),
                WrapMode = DataGridViewTriState.True,
            };
        }
Exemplo n.º 16
0
        public Home(MasterController masterController)
            : base(masterController)
        {
            InitializeComponent();
            this.dbController = masterController.DataBaseController;

            critical = new DataGridViewCellStyle()
            {
                BackColor = rectangleShape1.BackColor,
                SelectionBackColor = rectangleShape1.BackColor,
            };

            warning = new DataGridViewCellStyle()
            {
                BackColor = rectangleShape2.BackColor,
                SelectionBackColor = rectangleShape2.BackColor,
            };

            normal = new DataGridViewCellStyle()
            {
                Font = new Font("Times New Roman", 14, FontStyle.Regular),
                SelectionBackColor = Color.White,
                SelectionForeColor = Color.Black,
            };

            cellHeader = new DataGridViewCellStyle()
            {
                Font = new Font("Times New Roman", 14, FontStyle.Regular),
                WrapMode = DataGridViewTriState.True,
            };
        }
Exemplo n.º 17
0
 public MyUserControl(MasterController masterController, Panel panel, DockStyle dockStyle)
 {
     InitializeComponent();
     this.container        = panel;
     this.masterController = masterController;
     appear(dockStyle);
 }
Exemplo n.º 18
0
 public MyUserControl(MasterController masterController, Panel panel, DockStyle dockStyle)
 {
     InitializeComponent();
     this.container = panel;
     this.masterController = masterController;
     appear(dockStyle);
 }
Exemplo n.º 19
0
 public SliderPane(MasterController masterController, Panel panel, DockStyle dockStyle)
     : base(masterController, panel, dockStyle)
 {
     InitializeComponent();
     width        = min_width;
     StateChange += SliderPane_StateChange;
 }
Exemplo n.º 20
0
 public MenuBar(Panel panel, MasterController masterController)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     this.masterController.setMenuBar = this;
     masterController.EmployeeLogin += masterController_EmployeeLogin;
     masterController.EmployeeLogout += masterController_EmployeeLogout;
 }
Exemplo n.º 21
0
 public CustomerInformationView(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
     orderSliderPane1.accessMasterController = masterController;
     existingClientTable = new DataTable();
 }
Exemplo n.º 22
0
 public MenuBar(Panel panel, MasterController masterController)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     this.masterController.setMenuBar = this;
     masterController.EmployeeLogin  += masterController_EmployeeLogin;
     masterController.EmployeeLogout += masterController_EmployeeLogout;
 }
Exemplo n.º 23
0
 public ServiceScrollPane(InventoryView inventoryView, Panel panel, MasterController masterController)
     : base(masterController, panel, DockStyle.Bottom)
 {
     InitializeComponent();
     this.dbController  = masterController.DataBaseController;
     this.inventoryView = inventoryView;
     base.maxHeight     = 215;
 }
Exemplo n.º 24
0
 public AddServices(MasterController masterController, Panel panel)
     : base(masterController, panel, false)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
     initLayoutPanel();
     activate(false);
 }
Exemplo n.º 25
0
 public ServiceScrollPane(InventoryView inventoryView, Panel panel, MasterController masterController)
     : base(masterController, panel, DockStyle.Bottom)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
     this.inventoryView = inventoryView;
     base.maxHeight = 215;
 }
Exemplo n.º 26
0
 public AddServices(MasterController masterController, Panel panel)
     : base(masterController, panel, false)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
     initLayoutPanel();
     activate(false);
 }
Exemplo n.º 27
0
 public AdminMenuList(MasterController masterController, MenuBar menuBar) : base(masterController)
 {
     menuControls = new List <MenuControl> {
         new MenuControl(new Home(masterController), menuBar),
         //ew MenuControl(new InventoryView(masterController), menuBar),
         new MenuControl(new Sales(masterController), menuBar),
         new MenuControl(new UserAdministration(masterController), menuBar),
     };
 }
Exemplo n.º 28
0
 public AdminMenuList(MasterController masterController, MenuBar menuBar):base(masterController)
 {
     menuControls = new List<MenuControl> { 
          new MenuControl(new Home(masterController), menuBar),
          new MenuControl(new Sales(masterController), menuBar),
          new MenuControl(new UserAdministration(masterController), menuBar),
          new MenuControl(new InventoryView(masterController), menuBar),
          new MenuControl(new CustomerInformationView(masterController), menuBar),
     }; 
 }
Exemplo n.º 29
0
        public MyUserControl(MasterController masterController, Panel panel, bool isVisible)
        {
            InitializeComponent();
            this.container = panel;
            this.masterController = masterController;

            if (isVisible)
                appear(DockStyle.Fill);
           
        }
Exemplo n.º 30
0
 public AdminMenuList(MasterController masterController, MenuBar menuBar) : base(masterController)
 {
     menuControls = new List <MenuControl> {
         new MenuControl(new Home(masterController), menuBar),
         new MenuControl(new Sales(masterController), menuBar),
         new MenuControl(new SystemOperation(masterController), menuBar),
         new MenuControl(new InventoryView(masterController), menuBar),
         new MenuControl(new CustomerInformationView(masterController), menuBar),
     };
 }
Exemplo n.º 31
0
        public MyUserControl(MasterController masterController, Panel panel, bool isVisible)
        {
            InitializeComponent();
            this.container        = panel;
            this.masterController = masterController;

            if (isVisible)
            {
                appear(DockStyle.Fill);
            }
        }
Exemplo n.º 32
0
        //public ProductInventoryDomain getProductInventoryThroughBarcode(string barcode)
        //{
        //    Product product = new Product(getEntityWhere(string.Format("Barcode = '{0}'", barcode)),true);
        //    Inventory inventory = new Inventory(getEntityWhere(string.Format("Barcode = '{0}'", barcode)),true);
        //    return new ProductInventoryDomain(product, inventory);
        //}

        public void checkProductCriticalLevel(Product product, MasterController masterController)
        {
            string condition = string.Format("Name = '{0}'", product.Description);
            decimal qty_received = (decimal)readScalar("Qty_Received", condition);
            decimal qty_onhand = (decimal)readScalar("Qty_On_Hand", condition);

            if (qty_onhand <= (qty_received * .10M))
            {
                masterController.displayCriticalNotif(product, (int)qty_onhand);
            }
        }
Exemplo n.º 33
0
        //public ProductInventoryDomain getProductInventoryThroughBarcode(string barcode)
        //{
        //    Product product = new Product(getEntityWhere(string.Format("Barcode = '{0}'", barcode)),true);
        //    Inventory inventory = new Inventory(getEntityWhere(string.Format("Barcode = '{0}'", barcode)),true);
        //    return new ProductInventoryDomain(product, inventory);
        //}

        public void checkProductCriticalLevel(Product product, MasterController masterController)
        {
            string  condition    = string.Format("Name = '{0}'", product.Description);
            decimal qty_received = (decimal)readScalar("Qty_Received", condition);
            decimal qty_onhand   = (decimal)readScalar("Qty_On_Hand", condition);

            if (qty_onhand <= (qty_received * .10M))
            {
                masterController.displayCriticalNotif(product, (int)qty_onhand);
            }
        }
        public DatabaseController(MasterController masterController)
        {
            this.mySqlDB = new MySqlDB();
            this.masterController = masterController;
            this.employeeMapper = new EmployeeMapper(mySqlDB);

            this.userMapper = new UserMapper(mySqlDB);
            this.loginTrailMapper = new LoginTrailMapper(mySqlDB);
            this.productMapper = new ProductMapper(mySqlDB);
            this.inventoryMapper = new InventoryMapper(mySqlDB);

            this.productInventory = new ProductInventory(mySqlDB);
            this.invoiceMapper = new InvoiceMapper(mySqlDB);
            this.productInvoiceMapper = new ProductInvoiceMapper(mySqlDB);
<<<<<<< HEAD
            this.transactionResult = new TransactionResult(mySqlDB);
=======
            this.receipt = new Receipt(mySqlDB);
>>>>>>> origin/master

            this.purchasedProductMapper = new PurchasedProductMapper(mySqlDB);
            this.todaySalesMapper = new TodaySalesMapper(mySqlDB);
            this.dailySalesReportMapper = new DailySalesReportMapper(mySqlDB);
            this.weeklySalesReportMapper = new WeeklySalesReport(mySqlDB);

            this.monthlySalesReportMapper = new MonthlySaleReportMapper(mySqlDB);
            this.categoryMapper = new CategoryMapper(mySqlDB);
            this.groomingMapper = new GroomingMapper(mySqlDB);
            this.medicalMapper = new MedicalMapper(mySqlDB);

            this.gppMapper = new GroomingPetsizePriceMapper(mySqlDB);
            this.groomingViewMapper = new GroomingView(mySqlDB);
            this.gppTransactionMapper = new GppTransactionMapper(mySqlDB);
            this.serviceRenderedMapper = new ServiceRenderedMapper(mySqlDB);

            this.auditTrailMapper = new AuditTrailMapper(mySqlDB);
            this.auditTrailView = new AuditTrailView(mySqlDB);
            this.productTransactionView = new ProductTransactionView(mySqlDB);
            this.loginTrailViewMapper = new LoginTrailViewMapper(mySqlDB);

            this.petsizeMapper = new PetsizeMapper(mySqlDB);
            this.medicalTransactionMapper = new MedicalTransactionMapper(mySqlDB);
            this.productReturnViewMapper = new ProductReturnViewMapper(mySqlDB);

            this.customerInformationMapper = new CustomerInformationMapper(mySqlDB);

            // Events hooking
            this.masterController.EmployeeLogin += masterController_EmployeeLogin;
            this.masterController.EmployeeLogout += masterController_EmployeeLogout;
        }
Exemplo n.º 35
0
        public Titlebar(Panel panel, MasterController masterController) : base(masterController, panel, true)
        {
            InitializeComponent();
            this.masterController                = masterController;
            this.masterController.setTitleBar    = this;
            this.masterController.ContentChange += new EventHandler <ContentArgs>(masterController_ContentChange);

            this.masterController.EmployeeLogin  += masterController_EmployeeLogin;
            this.masterController.EmployeeLogout += masterController_EmployeeLogout;
            masterController.getFrmMain.Resize   += getFrmMain_Resize;

            TabStop = false;
            whenNotLogin();
        }
Exemplo n.º 36
0
        public void checkProductCriticalLevel(Product product, MasterController masterController)
        {
            string condition = string.Format("Name = '{0}'", product.Description);
            decimal qty_received = (decimal)readScalar("Qty_Received", condition);
            decimal qty_onhand = (decimal)readScalar("Qty_on_Hand", condition);

            if (qty_onhand <= (qty_received * .10M))
            {
                CriticalNotif notif = new CriticalNotif(product, (int)qty_onhand);
                notif.Location = new Point(masterController.getFrmMain.Height - notif.Height,
                                            masterController.getFrmMain.Width - notif.Width
                                            );
                notif.Show();
            }
        }
Exemplo n.º 37
0
        public Titlebar(Panel panel, MasterController masterController)
            : base(masterController, panel, true)
        {
            InitializeComponent();
            this.masterController = masterController;
            this.masterController.setTitleBar = this;
            this.masterController.ContentChange += new EventHandler<ContentArgs>(masterController_ContentChange);

            this.masterController.EmployeeLogin += masterController_EmployeeLogin;
            this.masterController.EmployeeLogout += masterController_EmployeeLogout;
            masterController.getFrmMain.Resize += getFrmMain_Resize;

            TabStop = false;
            whenNotLogin();
        }
Exemplo n.º 38
0
        public void checkProductCriticalLevel(Product product, MasterController masterController)
        {
            string  condition    = string.Format("Name = '{0}'", product.Description);
            decimal qty_received = (decimal)readScalar("Qty_Received", condition);
            decimal qty_onhand   = (decimal)readScalar("Qty_on_Hand", condition);

            if (qty_onhand <= (qty_received * .10M))
            {
                CriticalNotif notif = new CriticalNotif(product, (int)qty_onhand);
                notif.Location = new Point(masterController.getFrmMain.Height - notif.Height,
                                           masterController.getFrmMain.Width - notif.Width
                                           );
                notif.Show();
            }
        }
Exemplo n.º 39
0
        public DatabaseController(MasterController masterController)
        {
            this.mySqlDB          = new MySqlDB();
            this.masterController = masterController;
            this.employeeMapper   = new EmployeeMapper(mySqlDB);

            this.userMapper       = new UserMapper(mySqlDB);
            this.loginTrailMapper = new LoginTrailMapper(mySqlDB);
            this.productMapper    = new ProductMapper(mySqlDB);
            this.inventoryMapper  = new InventoryMapper(mySqlDB);

            this.productInventory     = new ProductInventory(mySqlDB);
            this.invoiceMapper        = new InvoiceMapper(mySqlDB);
            this.productInvoiceMapper = new ProductInvoiceMapper(mySqlDB);
            this.receipt = new Receipt(mySqlDB);

            this.purchasedProductMapper  = new PurchasedProductMapper(mySqlDB);
            this.todaySalesMapper        = new TodaySalesMapper(mySqlDB);
            this.dailySalesReportMapper  = new DailySalesReportMapper(mySqlDB);
            this.weeklySalesReportMapper = new WeeklySalesReport(mySqlDB);

            this.monthlySalesReportMapper = new MonthlySaleReportMapper(mySqlDB);
            this.categoryMapper           = new CategoryMapper(mySqlDB);
            this.groomingMapper           = new GroomingMapper(mySqlDB);
            this.medicalMapper            = new MedicalMapper(mySqlDB);

            this.gppMapper             = new GroomingPetsizePriceMapper(mySqlDB);
            this.groomingViewMapper    = new GroomingView(mySqlDB);
            this.gppTransactionMapper  = new GppTransactionMapper(mySqlDB);
            this.serviceRenderedMapper = new ServiceRenderedMapper(mySqlDB);

            this.auditTrailMapper       = new AuditTrailMapper(mySqlDB);
            this.auditTrailView         = new AuditTrailView(mySqlDB);
            this.productTransactionView = new ProductTransactionView(mySqlDB);
            this.loginTrailViewMapper   = new LoginTrailViewMapper(mySqlDB);

            this.petsizeMapper            = new PetsizeMapper(mySqlDB);
            this.medicalTransactionMapper = new MedicalTransactionMapper(mySqlDB);
            this.productReturnViewMapper  = new ProductReturnViewMapper(mySqlDB);

            this.customerInformationMapper = new CustomerInformationMapper(mySqlDB);
            this.fallbackMapper            = new FallbackMapper(mySqlDB);
            this.productInspectionMapper   = new ProductInspectionMapper(mySqlDB);

            // Events hooking
            this.masterController.EmployeeLogin  += masterController_EmployeeLogin;
            this.masterController.EmployeeLogout += masterController_EmployeeLogout;
        }
Exemplo n.º 40
0
        public ProductPaneScroll(InventoryView inventory, Panel panel, MasterController masterController)
            : base(masterController, panel, DOCKSTYLE_TYPE)
        {
            InitializeComponent();
            this.inventoryView = inventory;
            base.maxHeight = 250;
            this.dbController = masterController.DataBaseController;

            textboxes = new TextBox[] {
                txtBarcode,
                txtCompany,
                txtDescription,
                txtPrice,
                txtQuantity,
            };
        }
Exemplo n.º 41
0
        public ProductPaneScroll(InventoryView inventory, Panel panel, MasterController masterController)
            : base(masterController, panel, DOCKSTYLE_TYPE)
        {
            InitializeComponent();
            this.inventoryView = inventory;
            base.maxHeight     = 250;
            this.dbController  = masterController.DataBaseController;

            textboxes = new TextBox[] {
                txtBarcode,
                txtCompany,
                txtDescription,
                txtPrice,
                txtQuantity,
            };
        }
Exemplo n.º 42
0
        public AddUserPane(Panel panel, MasterController masterController, UserAdministration userAdministration)
            : base(masterController, panel, true)
        {
            InitializeComponent();
            this.userAdministration = userAdministration;

            textboxes = new List<TextBox>()
            {
                txtUsername,
                txtPassword,
                txtLastname,
                txtFirstname,
                txtMiddlename,
                txtMobno,
                txtImagepath,
                txtAddress,
                txtRepassword,
            };

            dbController = masterController.DataBaseController;
        }
Exemplo n.º 43
0
        public AddUserPane(Panel panel, MasterController masterController, UserAdministration userAdministration)
            : base(masterController, panel, true)
        {
            InitializeComponent();
            this.userAdministration = userAdministration;

            textboxes = new List <TextBox>()
            {
                txtUsername,
                txtPassword,
                txtLastname,
                txtFirstname,
                txtMiddlename,
                txtMobno,
                txtImagepath,
                txtAddress,
                txtRepassword,
            };

            dbController = masterController.DataBaseController;
        }
Exemplo n.º 44
0
        public InventoryView(MasterController masterController)
            : base(masterController)
        {
            InitializeComponent();

            this.dbController = masterController.DataBaseController;
            sliderPane = productSliderPane1;
            sliderPane.accessMasterController = masterController;
            sliderPane.dbController = masterController.DataBaseController;
            sliderPane.inventoryView = this;

            using (Font timesNewRoman = new Font("Times New Roman", 12, FontStyle.Regular))
            {
                critical = new DataGridViewCellStyle()
                {
                    Font = timesNewRoman,
                    BackColor = Color.DarkRed,
                    ForeColor = Color.White,
                    SelectionBackColor = SystemColors.inventoryRosy,
                    SelectionForeColor = Color.Black,
                };

                normal = new DataGridViewCellStyle()
                {
                    Font = timesNewRoman,
                    BackColor = Color.White,
                    ForeColor = Color.Black,
                    SelectionBackColor = Color.Silver,
                    SelectionForeColor = Color.White,
                };
            }

            highlighted = new DataGridViewCellStyle()
            {
                Font = new Font("Arial Rounded MT", 12, FontStyle.Bold),
            };

            dgInventory.DefaultCellStyle.ApplyStyle(normal);
        }
Exemplo n.º 45
0
        public InventoryView(MasterController masterController)
            : base(masterController)
        {
            InitializeComponent();

            this.dbController = masterController.DataBaseController;
            sliderPane        = productSliderPane1;
            sliderPane.accessMasterController = masterController;
            sliderPane.dbController           = masterController.DataBaseController;
            sliderPane.inventoryView          = this;

            using (Font timesNewRoman = new Font("Times New Roman", 12, FontStyle.Regular))
            {
                critical = new DataGridViewCellStyle()
                {
                    Font               = timesNewRoman,
                    BackColor          = Color.DarkRed,
                    ForeColor          = Color.White,
                    SelectionBackColor = SystemColors.inventoryRosy,
                    SelectionForeColor = Color.Black,
                };

                normal = new DataGridViewCellStyle()
                {
                    Font               = timesNewRoman,
                    BackColor          = Color.White,
                    ForeColor          = Color.Black,
                    SelectionBackColor = Color.Silver,
                    SelectionForeColor = Color.White,
                };
            }

            highlighted = new DataGridViewCellStyle()
            {
                Font = new Font("Arial Rounded MT", 12, FontStyle.Bold),
            };

            dgInventory.DefaultCellStyle.ApplyStyle(normal);
        }
Exemplo n.º 46
0
 public UserAdministration(MasterController masterController, int index)
     : base(masterController)
 {
     InitializeComponent();
     changedTab(index);
     dbController = masterController.DataBaseController;
 }
Exemplo n.º 47
0
 public UserMenuList(MasterController masterController, MenuBar menuBar):base(masterController)
 {
     menuControls = new List<MenuControl> { 
          new MenuControl(new POS(masterController), menuBar),
     };
 }
Exemplo n.º 48
0
 public ProductReturnControl(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
 }
Exemplo n.º 49
0
 public FBUser(Fallback fallback, MasterController masterController, Panel panel)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     this.fallback = fallback;
 }
Exemplo n.º 50
0
 public Sales(MasterController masterController):base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
 }
Exemplo n.º 51
0
 public MyUserControl(MasterController masterController)
 {
     this.masterController = masterController;
 }
Exemplo n.º 52
0
 public UserAdministration(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
 }
   public InventoryPersonnelMenuList(MasterController masterController, MenuBar menuBar):base(masterController)
 {
     menuControls = new List<MenuControl> { 
          new MenuControl(new InventoryView(masterController), menuBar),
     }; 
 }
Exemplo n.º 54
0
 public MyUserControl(MasterController masterController)
 {
     this.masterController = masterController;
 }
Exemplo n.º 55
0
 public Back(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
 }
Exemplo n.º 56
0
 public UserAdministration(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
 }
Exemplo n.º 57
0
 public MenuList(MasterController masterController)
 {
     this.masterController = masterController;
 }
Exemplo n.º 58
0
 public Sales(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
 }
Exemplo n.º 59
0
 public Orders(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
     initTable();
 }
Exemplo n.º 60
0
 public MenuList(MasterController masterController)
 {
     this.masterController = masterController;
 }