コード例 #1
1
 public ProductSliderPane(InventoryView inventory, Panel panel, MasterController masterController)
     : base(masterController, panel, DOCKSTYLE_TYPE)
 {
     InitializeComponent();
     this.inventoryView = inventory;
     this.dbController = masterController.DataBaseController;
 }
コード例 #2
0
ファイル: LoginControl.cs プロジェクト: shiroh10/X-O-Genesis
 public LoginControl(LoginPane loginPane, MasterController masterController, Panel panel)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     this.loginPane = loginPane;
     base.masterController.EmployeeLogout += masterController_EmployeeLogout;
 }
コード例 #3
0
 public UserAdministration(MasterController masterController, int index)
     : base(masterController)
 {
     InitializeComponent();
     changedTab(index);
     dbController = masterController.DataBaseController;
 }
コード例 #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),
     }; 
 }
コード例 #5
0
ファイル: Orders.cs プロジェクト: shiroh10/X-O-Genesis
 public Orders(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
     initTable();
 }
コード例 #6
0
 public UserSettingsControl(Panel panel, MasterController masterController) : base(masterController, panel, false)
 {
     InitializeComponent();
     this.masterController.setUserSettingsControl = this;
     masterController.EmployeeLogin += masterController_EmployeeLogin;
     TabStop = false;
 }
コード例 #7
0
 public UserSettingsControl(Panel panel, MasterController masterController):base(masterController, panel, false)
 {
     InitializeComponent();
     this.masterController.setUserSettingsControl = this;
     masterController.EmployeeLogin += masterController_EmployeeLogin;
     TabStop = false;
 }
コード例 #8
0
ファイル: StaffMenuList.cs プロジェクト: qhtml5/X-O-Genesis
 public StaffMenuList(MasterController masterController, MenuBar menuBar) : base(masterController)
 {
     menuControls = new List <MenuControl> {
         new MenuControl(new CustomerInformationView(masterController), menuBar),
         new MenuControl(new OrdersView(masterController), menuBar),
     };
 }
コード例 #9
0
 public ProductSliderPane(InventoryView inventory, Panel panel, MasterController masterController)
     : base(masterController, panel, DOCKSTYLE_TYPE)
 {
     InitializeComponent();
     this.inventoryView = inventory;
     this.dbController  = masterController.DataBaseController;
 }
コード例 #10
0
ファイル: LoginControl.cs プロジェクト: shiroh10/X-O-Genesis
 public LoginControl(LoginPane loginPane, MasterController masterController, Panel panel)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     this.loginPane = loginPane;
     base.masterController.EmployeeLogout += masterController_EmployeeLogout;
 }
コード例 #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();
        }
コード例 #12
0
 public CustomerInformationView(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
     orderSliderPane1.accessMasterController = masterController;
     existingClientTable = new DataTable();
 }
コード例 #13
0
ファイル: frmMain.cs プロジェクト: DarkSaito29/X-O-Genesis
        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();
        }
コード例 #14
0
ファイル: SliderPane.cs プロジェクト: shiroh10/X-O-Genesis
 public SliderPane(MasterController masterController, Panel panel, DockStyle dockStyle)
     : base(masterController, panel, dockStyle)
 {
     InitializeComponent();
     width = min_width;
     StateChange += SliderPane_StateChange;
 }
コード例 #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,
            };
        }
コード例 #16
0
ファイル: Home.cs プロジェクト: am0rphyst/X-O-Genesis
        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,
            };
        }
コード例 #17
0
ファイル: MyUserControl.cs プロジェクト: shiroh10/X-O-Genesis
 public MyUserControl(MasterController masterController, Panel panel, DockStyle dockStyle)
 {
     InitializeComponent();
     this.container        = panel;
     this.masterController = masterController;
     appear(dockStyle);
 }
コード例 #18
0
 public MyUserControl(MasterController masterController, Panel panel, DockStyle dockStyle)
 {
     InitializeComponent();
     this.container = panel;
     this.masterController = masterController;
     appear(dockStyle);
 }
コード例 #19
0
 public SliderPane(MasterController masterController, Panel panel, DockStyle dockStyle)
     : base(masterController, panel, dockStyle)
 {
     InitializeComponent();
     width        = min_width;
     StateChange += SliderPane_StateChange;
 }
コード例 #20
0
ファイル: MenuBar.cs プロジェクト: DarkSaito29/X-O-Genesis
 public MenuBar(Panel panel, MasterController masterController)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     this.masterController.setMenuBar = this;
     masterController.EmployeeLogin += masterController_EmployeeLogin;
     masterController.EmployeeLogout += masterController_EmployeeLogout;
 }
コード例 #21
0
 public CustomerInformationView(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
     orderSliderPane1.accessMasterController = masterController;
     existingClientTable = new DataTable();
 }
コード例 #22
0
ファイル: MenuBar.cs プロジェクト: shiroh10/X-O-Genesis
 public MenuBar(Panel panel, MasterController masterController)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     this.masterController.setMenuBar = this;
     masterController.EmployeeLogin  += masterController_EmployeeLogin;
     masterController.EmployeeLogout += masterController_EmployeeLogout;
 }
コード例 #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;
 }
コード例 #24
0
ファイル: AddServices.cs プロジェクト: shiroh10/X-O-Genesis
 public AddServices(MasterController masterController, Panel panel)
     : base(masterController, panel, false)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
     initLayoutPanel();
     activate(false);
 }
コード例 #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;
 }
コード例 #26
0
ファイル: AddServices.cs プロジェクト: shiroh10/X-O-Genesis
 public AddServices(MasterController masterController, Panel panel)
     : base(masterController, panel, false)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
     initLayoutPanel();
     activate(false);
 }
コード例 #27
0
ファイル: AdminMenuList.cs プロジェクト: shiroh10/X-O-Genesis
 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),
     };
 }
コード例 #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),
     }; 
 }
コード例 #29
0
        public MyUserControl(MasterController masterController, Panel panel, bool isVisible)
        {
            InitializeComponent();
            this.container = panel;
            this.masterController = masterController;

            if (isVisible)
                appear(DockStyle.Fill);
           
        }
コード例 #30
0
ファイル: AdminMenuList.cs プロジェクト: qhtml5/X-O-Genesis
 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),
     };
 }
コード例 #31
0
ファイル: MyUserControl.cs プロジェクト: shiroh10/X-O-Genesis
        public MyUserControl(MasterController masterController, Panel panel, bool isVisible)
        {
            InitializeComponent();
            this.container        = panel;
            this.masterController = masterController;

            if (isVisible)
            {
                appear(DockStyle.Fill);
            }
        }
コード例 #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);
            }
        }
コード例 #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);
            }
        }
コード例 #34
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);
<<<<<<< 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;
        }
コード例 #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();
        }
コード例 #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();
            }
        }
コード例 #37
0
ファイル: Titlebar.cs プロジェクト: shiroh10/X-O-Genesis
        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();
        }
コード例 #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();
            }
        }
コード例 #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;
        }
コード例 #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,
            };
        }
コード例 #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,
            };
        }
コード例 #42
0
ファイル: AddUserPane.cs プロジェクト: shiroh10/X-O-Genesis
        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;
        }
コード例 #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;
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #46
0
 public UserAdministration(MasterController masterController, int index)
     : base(masterController)
 {
     InitializeComponent();
     changedTab(index);
     dbController = masterController.DataBaseController;
 }
コード例 #47
0
 public UserMenuList(MasterController masterController, MenuBar menuBar):base(masterController)
 {
     menuControls = new List<MenuControl> { 
          new MenuControl(new POS(masterController), menuBar),
     };
 }
コード例 #48
0
 public ProductReturnControl(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
 }
コード例 #49
0
ファイル: FBUser.cs プロジェクト: qhtml5/X-O-Genesis
 public FBUser(Fallback fallback, MasterController masterController, Panel panel)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     this.fallback = fallback;
 }
コード例 #50
0
ファイル: Sales.cs プロジェクト: am0rphyst/X-O-Genesis
 public Sales(MasterController masterController):base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
 }
コード例 #51
0
 public MyUserControl(MasterController masterController)
 {
     this.masterController = masterController;
 }
コード例 #52
0
 public UserAdministration(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
 }
コード例 #53
0
   public InventoryPersonnelMenuList(MasterController masterController, MenuBar menuBar):base(masterController)
 {
     menuControls = new List<MenuControl> { 
          new MenuControl(new InventoryView(masterController), menuBar),
     }; 
 }
コード例 #54
0
ファイル: MyUserControl.cs プロジェクト: shiroh10/X-O-Genesis
 public MyUserControl(MasterController masterController)
 {
     this.masterController = masterController;
 }
コード例 #55
0
 public Back(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
 }
コード例 #56
0
 public UserAdministration(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
 }
コード例 #57
0
ファイル: MenuList.cs プロジェクト: shiroh10/X-O-Genesis
 public MenuList(MasterController masterController)
 {
     this.masterController = masterController;
 }
コード例 #58
0
ファイル: Sales.cs プロジェクト: shiroh10/X-O-Genesis
 public Sales(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
 }
コード例 #59
0
 public Orders(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
     initTable();
 }
コード例 #60
0
ファイル: MenuList.cs プロジェクト: DarkSaito29/X-O-Genesis
 public MenuList(MasterController masterController)
 {
     this.masterController = masterController;
 }