private void MTN_PRODUCT_LIST_Load(object sender, EventArgs e) { //DBGrid.ContextMenuStrip.Items.Add("-"); //DBGrid.ContextMenuStrip.Items.Add(clsTranslate.TranslateString("Product Sale Price"), LXMS.Properties.Resources.Property, new System.EventHandler(this.mnuProductSalePrice_Click)); clsTranslate.InitLanguage(this); Util.ChangeStatus(this, true); FillControl.FillUnitList(cboUnitNo, false, true); if (clsLxms.ShowProductSpecify() == 1) { lblSpecify.Visible = true; txtSpecify.Visible = true; } else { lblSpecify.Visible = false; txtSpecify.Visible = false; } if (clsLxms.ShowProductSize() == 1) { lblSize.Visible = true; lblSizeStar.Visible = true; cboSizeFlag.Visible = true; } else { lblSize.Visible = false; lblSizeStar.Visible = false; cboSizeFlag.Visible = false; } DBGrid.Tag = this.Text; LoadTree(); }
private void cboUnitNo_SelectedIndexChanged(object sender, EventArgs e) { if (cboUnitNo.SelectedValue == null) { return; } if (cboUnitNo.SelectedValue.ToString().CompareTo("New...") != 0) { return; } MTN_UNIT_LIST frm = new MTN_UNIT_LIST(); frm.ShowDialog(); FillControl.FillUnitList(cboUnitNo, false, true); }