public frmCommissionDeliveries(bool Com) { InitializeComponent(); // Note for the file // If Com = True then this is a commission delivery // else then this is a fabric sales delivery repo = new DyeRepository(); if (Com) { this.Text = "Commission Deliveries"; } else { this.Text = "Fabric Sales Deliveries"; } _Commission = Com; if (!Com) { groupBox2.Visible = false; } this.cmboCurrentBatches.CheckStateChanged += new System.EventHandler(this.cmboCurrentBatches_CheckStateChanged); this.cmboBatchesReprint.CheckStateChanged += new System.EventHandler(this.cmboCurrentBatchesReprint_CheckStateChanged); }
public frmDyeOrdersSelection() { InitializeComponent(); repo = new DyeRepository(); this.cmboGreige.CheckStateChanged += new System.EventHandler(this.cmboGreige_CheckStateChanged); this.cmboStyle.CheckStateChanged += new System.EventHandler(this.cmboStyles_CheckStateChanged); this.cmboColour.CheckStateChanged += new System.EventHandler(this.cmboColours_CheckStateChanged); this.cmboCustomers.CheckStateChanged += new System.EventHandler(this.cmboCustomers_CheckStateChanged); }