private void BuildForm() { if (fstables == null) { fstables = new FStables(); } //fbilltables.FStables_NeedToRefresh += VStables_NeedToRefresh; Parent.Controls.Add(fstables); fstables.Dock = DockStyle.Fill; fstables.Show(); fstables.BringToFront(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fstables == null) { fstables = new FStables(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fstables.SetAction(BtnEvent.Open, pkValue); } }