private void frmProductDisplayOption_Load(object sender, EventArgs e) { this.Text = this.Text + " - " + MetriconCommon.WindowTitleInfo; ClearForm(); if (productLookupForm == null) { productLookupForm = new frmProductLookup(); } productLookupForm.ShowDialog(); row = productLookupForm.SelectedRow; if (row != null) { productID = row["ProductID"].ToString(); loadArea(); loadGroup(); getStatistics(); LoadProductDetails(); LoadPriceList(); loadPAGList(); loadDisplayList(); } else { this.Close(); } // classCustomizeScreenLookAndFeel.customizeMyScreen(this); }
private void btnSelectProduct_Click(object sender, EventArgs e) { if (productLookupForm == null) { productLookupForm = new frmProductLookup(); } productLookupForm.ShowDialog(); DataRow row = productLookupForm.SelectedRow; try { this.txtBaseProductID.Text = row["productID"].ToString(); } catch (RowNotInTableException ep) { this.txtBaseProductID.Text = ""; MessageBox.Show(ep.ToString()); } catch (NullReferenceException ep2) { this.txtBaseProductID.Text = ""; MessageBox.Show(ep2.ToString()); } }
private void btnLookupProduct_Click(object sender, EventArgs e) { if (productLookupForm == null) { productLookupForm = new frmProductLookup(); } productLookupForm.ShowDialog(); if ((productLookupForm.SelectedRow != null) && (productLookupForm.SelectedRow.RowState == DataRowState.Unchanged)) { this.txtProductID.Text = productLookupForm.SelectedRow["ProductID"].ToString(); } }
private void btnLookupPAG_Click(object sender, EventArgs e) { if (productLookupForm == null) { productLookupForm = new frmProductLookup(); } productLookupForm.ShowDialog(); if (productLookupForm.SelectedRow != null && (!(productLookupForm.SelectedRow.RowState == DataRowState.Detached))) { txtProductID.Text = productLookupForm.SelectedRow["ProductID"].ToString(); LoadPAGList(); } }
private void frmPagLookup_Load(object sender, EventArgs e) { this.Text = this.Text + " - " + MetriconCommon.WindowTitleInfo; if (productLookupForm == null) { productLookupForm = new frmProductLookup(); } productLookupForm.ShowDialog(); if (productLookupForm.SelectedRow != null && (!(productLookupForm.SelectedRow.RowState == DataRowState.Detached))) { txtProductID.Text = productLookupForm.SelectedRow["ProductID"].ToString(); LoadPAGList(); } // classCustomizeScreenLookAndFeel.customizeMyScreen(this); }