private void BPC_Add_Product_Click(object sender, EventArgs e) { PopupModalForm pmf = new PopupModalForm(); PopupProductModelControl pmc = new PopupProductModelControl(_vPanel, _hPanel, pmf, this); pmc.Show(); //pmc.Dispose(); pmf.Controls.Add(pmc); pmf.ShowDialog(); }
private void BSAC_AddNewCollection_Click(object sender, EventArgs e) { PopupModalForm pmf = new PopupModalForm(); PopupCollectionModelControl pmc = new PopupCollectionModelControl(_vPanel, _hPanel, pmf, this, CB_SAC_DealerCode.Text); pmc.Show(); //pmc.Dispose(); pmf.Controls.Add(pmc); pmf.ShowDialog(); }
private void BPC_Edit_Product_Click(object sender, EventArgs e) { DataGridViewRow row = this.DGV_ProductList.SelectedRows[0]; if (row != null) { ProductModel product = row.DataBoundItem as ProductModel; PopupModalForm pmf = new PopupModalForm(); PopupProductModelControl pmc = new PopupProductModelControl(_vPanel, _hPanel, product, this, pmf); pmc.Show(); //pmc.Dispose(); pmf.Controls.Add(pmc); pmf.ShowDialog(); } else { MessageBox.Show("Select a Product to Edit."); } }
private void BDC_Edit_Click(object sender, EventArgs e) { DataGridViewRow row = this.DGV_DealerList.SelectedRows[0]; if (row != null) { DealerModel dealer = row.DataBoundItem as DealerModel; PopupModalForm pmf = new PopupModalForm(); PopupDealerModelControl pmc = new PopupDealerModelControl(_vPanel, _hPanel, dealer, this, pmf); pmc.Show(); //pmc.Dispose(); pmf.Controls.Add(pmc); pmf.ShowDialog(); } else { MessageBox.Show("Select a Dealer to Edit."); } }