private void BuildForm() { if (fbundle == null) { fbundle = new FBundle(); } fbundle.FBundle_NeedToRefresh += VBundle_NeedToRefresh; Parent.Controls.Add(fbundle); fbundle.Dock = DockStyle.Fill; fbundle.Show(); fbundle.BringToFront(); }
void txt_bundle_NewEntryNeeded(object sender, string pValue) { if (fsbundle == null) { fsbundle = new FBundle(); } Parent.Controls.Add(fsbundle); fsbundle.Dock = DockStyle.Fill; fsbundle.Show(); fsbundle.BringToFront(); fsbundle.Focus(); fsbundle.SetAction(BtnEvent.New, null); fsbundle.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fbundle == null) { fbundle = new FBundle(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fbundle.SetAction(BtnEvent.Open, pkValue); } }