private void BuildForm() { if (frole == null) { frole = new FRole(); } frole.FRole_NeedToRefresh += VRole_NeedToRefresh; Parent.Controls.Add(frole); frole.Dock = DockStyle.Fill; frole.Show(); frole.BringToFront(); }
void txt_role_NewEntryNeeded(object sender, string pValue) { if (fsrole == null) { fsrole = new FRole(); } Parent.Controls.Add(fsrole); fsrole.Dock = DockStyle.Fill; fsrole.Show(); fsrole.BringToFront(); fsrole.Focus(); fsrole.SetAction(BtnEvent.New, null); fsrole.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (frole == null) { frole = new FRole(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { frole.SetAction(BtnEvent.Open, pkValue); } }