void txt_state_NewEntryNeeded(object sender, string pValue) { if (fsstate == null) { fsstate = new FState(); } Parent.Controls.Add(fsstate); fsstate.Dock = DockStyle.Fill; fsstate.Show(); fsstate.BringToFront(); fsstate.Focus(); fsstate.SetAction(BtnEvent.New, null); fsstate.SetFocus(); }
void txt_state_NewEntryNeeded(object sender, string pValue) { if (xstate == null) { xstate = new FState(); xstate.FState_NeedToRefresh += State_NeedToRefresh; } this.Parent.Controls.Add(xstate); xstate.Dock = DockStyle.Fill; xstate.Show(); xstate.BringToFront(); xstate.Focus(); xstate.SetAction(BtnEvent.New, null); xstate.SetFocus(); xstate.setname(pValue); }