private void BuildForm() { if (fstate == null) { fstate = new FState(); } fstate.FState_NeedToRefresh += VState_NeedToRefresh; Parent.Controls.Add(fstate); fstate.Dock = DockStyle.Fill; fstate.Show(); fstate.BringToFront(); }
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); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fstate == null) { fstate = new FState(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fstate.SetAction(BtnEvent.Open, pkValue); } }