public AddProducer() { InitializeComponent(); business = new ProducerManagement(); this.btnCancel.Click += btnCancel_Click; this.btnSave.Click += btnSave_Click; }
public UpdateProducer(int id) { InitializeComponent(); business = new ProducerManagement(); producerId = id; this.Load += UpdateProducer_Load; this.btnCancel.Click += btnCancel_Click; this.btnSave.Click += btnSave_Click; }
public IndexProducerFrom() { InitializeComponent(); business = new ProducerManagement(); this.Load += IndexProducerFrom_Load; this.btnAddProducer.Click += btnAddProducer_Click; this.btnEditProducer.Click += btnEditProducer_Click; this.btnDeleteProducer.Click += btnDeleteProducer_Click; this.btnViewCart.Click += btnViewCart_Click; this.btnViewItem.Click += btnViewItem_Click; this.btnClose.Click += btnClose_Click; this.grbViewProducer.DoubleClick += btnEditProducer_Click; }