private void BuildForm() { if (fproducttype == null) { fproducttype = new FProducttype(); } fproducttype.FProducttype_NeedToRefresh += VProducttype_NeedToRefresh; Parent.Controls.Add(fproducttype); fproducttype.Dock = DockStyle.Fill; fproducttype.Show(); fproducttype.BringToFront(); }
void txt_producttype_NewEntryNeeded(object sender, string pValue) { if (fsproducttype == null) { fsproducttype = new FProducttype(); } Parent.Controls.Add(fsproducttype); fsproducttype.Dock = DockStyle.Fill; fsproducttype.Show(); fsproducttype.BringToFront(); fsproducttype.Focus(); fsproducttype.SetAction(BtnEvent.New, null); fsproducttype.SetFocus(); }
void Txt_producttype_NewEntryNeeded(object sender, string pValue) { if (xproducttype == null) { xproducttype = new FProducttype(); xproducttype.FProducttype_NeedToRefresh += Producttype_NeedToRefresh; } this.Parent.Controls.Add(xproducttype); xproducttype.Dock = DockStyle.Fill; xproducttype.Show(); xproducttype.BringToFront(); xproducttype.Focus(); xproducttype.SetAction(BtnEvent.New, null); xproducttype.SetFocus(); xproducttype.setname(pValue); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fproducttype == null) { fproducttype = new FProducttype(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fproducttype.SetAction(BtnEvent.Open, pkValue); } }