private void BuildForm() { if (fshipping == null) { fshipping = new FShipping(); } fshipping.FShipping_NeedToRefresh += VShipping_NeedToRefresh; Parent.Controls.Add(fshipping); fshipping.Dock = DockStyle.Fill; fshipping.Show(); fshipping.BringToFront(); }
void txt_shipping_NewEntryNeeded(object sender, string pValue) { if (fsshipping == null) { fsshipping = new FShipping(); } Parent.Controls.Add(fsshipping); fsshipping.Dock = DockStyle.Fill; fsshipping.Show(); fsshipping.BringToFront(); fsshipping.Focus(); fsshipping.SetAction(BtnEvent.New, null); fsshipping.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fshipping == null) { fshipping = new FShipping(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fshipping.SetAction(BtnEvent.Open, pkValue); } }