コード例 #1
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);
        }
コード例 #2
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);
        }
コード例 #3
0
 public modalAddCategory(DatabaseController dbController, ProductSliderPane slider)
 {
     InitializeComponent();
     this.dbController = dbController;
     this.slider       = slider;
 }
コード例 #4
0
 public modalAddCategory(DatabaseController dbController, ProductSliderPane slider)
 {
     InitializeComponent();
     this.dbController = dbController;
     this.slider = slider;
 }