private void BuildForm() { if (fparty == null) { fparty = new FParty(); } fparty.FParty_NeedToRefresh += VParty_NeedToRefresh; Parent.Controls.Add(fparty); fparty.Dock = DockStyle.Fill; fparty.Show(); fparty.BringToFront(); }
void txt_party_NewEntryNeeded(object sender, string pValue) { if (fsparty == null) { fsparty = new FParty(); } Parent.Controls.Add(fsparty); fsparty.Dock = DockStyle.Fill; fsparty.Show(); fsparty.BringToFront(); fsparty.Focus(); fsparty.SetAction(BtnEvent.New, null); fsparty.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fparty == null) { fparty = new FParty(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fparty.SetAction(BtnEvent.Open, pkValue); } }