void txt_method_NewEntryNeeded(object sender, string pValue) { if (fsmethod == null) { fsmethod = new FMethod(); } Parent.Controls.Add(fsmethod); fsmethod.Dock = DockStyle.Fill; fsmethod.Show(); fsmethod.BringToFront(); fsmethod.Focus(); fsmethod.SetAction(BtnEvent.New, null); fsmethod.SetFocus(); }
void txt_method_NewEntryNeeded(object sender, string pValue) { if (xmethod == null) { xmethod = new FMethod(); xmethod.FMethod_NeedToRefresh += Method_NeedToRefresh; } this.Parent.Controls.Add(xmethod); xmethod.Dock = DockStyle.Fill; xmethod.Show(); xmethod.BringToFront(); xmethod.Focus(); xmethod.SetAction(BtnEvent.New, null); xmethod.SetFocus(); xmethod.setname(pValue); }