public ProductSliderPane(InventoryView inventory, Panel panel, MasterController masterController)
     : base(masterController, panel, DOCKSTYLE_TYPE)
 {
     InitializeComponent();
     this.inventoryView = inventory;
     this.dbController = masterController.DataBaseController;
 }
Beispiel #2
0
        private void btnLogin_Click(object sender, EventArgs e){
            
            if (dbController == null)
                dbController = masterController.DataBaseController;

            btnLogin.Enabled = false;
            Username = getUserInput_Username;
            Password = getUserInput_Password;

            loginPane.startProgressbar();

            try
            {
                backgroundWorker1.RunWorkerAsync();
            }
            catch (InvalidOperationException ioe)
            {
                ErrorLog.Log(ioe);
            }
            catch (Exception ex)
            {
                ErrorLog.Log(ex);
            }
            
        }
Beispiel #3
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,
            };
        }
Beispiel #4
0
 public Orders(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
     initTable();
 }
Beispiel #5
0
 public AddServices(MasterController masterController, Panel panel)
     : base(masterController, panel, false)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
     initLayoutPanel();
     activate(false);
 }
 public ServiceScrollPane(InventoryView inventoryView, Panel panel, MasterController masterController)
     : base(masterController, panel, DockStyle.Bottom)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
     this.inventoryView = inventoryView;
     base.maxHeight = 215;
 }
 public CustomerInformationView(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
     orderSliderPane1.accessMasterController = masterController;
     existingClientTable = new DataTable();
 }
Beispiel #8
0
        public void initLoginControl()
        {
            dbController = masterController.DataBaseController;
            txtUsername.Focus();
            masterController.setFormReturnkey = btnLogin;
            accessLoginMessage = "Welcome! You may now login";

            loginAttempt = 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,
            };
        }
Beispiel #10
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;
        }
Beispiel #11
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;
        }
Beispiel #12
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);
        }
Beispiel #13
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);
        }
Beispiel #14
0
 public Sales(MasterController masterController):base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
 }
Beispiel #15
0
 public modalInspectProduct(DatabaseController dbController)
 {
     InitializeComponent();
     this.dbController = dbController;
 }
Beispiel #16
0
 public UserAdministration(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
 }
        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,
            };
        }
Beispiel #18
0
 public Sales(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
 }
Beispiel #19
0
 public CustomerInformationView(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
     dbController        = masterController.DataBaseController;
     existingClientTable = new DataTable();
 }
Beispiel #20
0
 public Personalization(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
 }
Beispiel #21
0
 public modalVoid(DatabaseController dbController)
 {
     InitializeComponent();
     this.dbController = dbController;
 }
Beispiel #22
0
        private void btnForgot_Click(object sender, EventArgs e)
        {
            if (dbController == null)
                dbController = masterController.DataBaseController;

            btnLogin.Enabled = false;
            
        }
Beispiel #23
0
 public modalAddCategory(DatabaseController dbController, ProductSliderPane slider)
 {
     InitializeComponent();
     this.dbController = dbController;
     this.slider       = slider;
 }
 public modalAddCategory(DatabaseController dbController, ProductPaneScroll scroll)
 {
     InitializeComponent();
     this.dbController = dbController;
     this.scroll = scroll;
 }
 public UserAdministration(MasterController masterController)
     : base(masterController)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
 }
 public Personalization(MasterController masterController):base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
 }
Beispiel #27
0
 public UserView(Panel panel, MasterController masterController)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
 }
Beispiel #28
0
 public UserView(Panel panel, MasterController masterController)
     : base(masterController, panel, true)
 {
     InitializeComponent();
     dbController = masterController.DataBaseController;
 }
 public UserAdministration(MasterController masterController, int index)
     : base(masterController)
 {
     InitializeComponent();
     changedTab(index);
     dbController = masterController.DataBaseController;
 }
 public modalAddCategory(DatabaseController dbController, ProductSliderPane slider)
 {
     InitializeComponent();
     this.dbController = dbController;
     this.slider = slider;
 }
 public modalAddCategory(DatabaseController dbController, ProductPaneScroll scroll)
 {
     InitializeComponent();
     this.dbController = dbController;
     this.scroll       = scroll;
 }
Beispiel #32
0
 public modalVoid(DatabaseController dbController)
 {
     InitializeComponent();
     this.dbController = dbController;
 }
Beispiel #33
0
 public Orders(MasterController masterController) : base(masterController)
 {
     InitializeComponent();
     this.dbController = masterController.DataBaseController;
     initTable();
 }
 public modalInspectProduct(DatabaseController dbController)
 {
     InitializeComponent();
     this.dbController = dbController;
 }