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); }
public modalAddCategory(DatabaseController dbController, ProductSliderPane slider) { InitializeComponent(); this.dbController = dbController; this.slider = slider; }