private void BuildForm() { if (fmtables == null) { fmtables = new FMtables(); } fmtables.FMtables_NeedToRefresh += VMtables_NeedToRefresh; Parent.Controls.Add(fmtables); fmtables.Dock = DockStyle.Fill; fmtables.Show(); fmtables.BringToFront(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fmtables == null) { fmtables = new FMtables(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fmtables.SetAction(BtnEvent.Open, pkValue); } }