private void BuildForm() { if (facy == null) { facy = new FAcy(); } facy.FAcy_NeedToRefresh += VAcy_NeedToRefresh; Parent.Controls.Add(facy); facy.Dock = DockStyle.Fill; facy.Show(); facy.BringToFront(); }
void txt_acy_NewEntryNeeded(object sender, string pValue) { if (fsacy == null) { fsacy = new FAcy(); } Parent.Controls.Add(fsacy); fsacy.Dock = DockStyle.Fill; fsacy.Show(); fsacy.BringToFront(); fsacy.Focus(); fsacy.SetAction(BtnEvent.New, null); fsacy.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (facy == null) { facy = new FAcy(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { facy.SetAction(BtnEvent.Open, pkValue); } }