private void BuildForm() { if (fledger == null) { fledger = new FLedger(); } fledger.FLedger_NeedToRefresh += VLedger_NeedToRefresh; Parent.Controls.Add(fledger); fledger.Dock = DockStyle.Fill; fledger.Show(); fledger.BringToFront(); }
void txt_ledger_NewEntryNeeded(object sender, string pValue) { if (fsledger == null) { fsledger = new FLedger(); } Parent.Controls.Add(fsledger); fsledger.Dock = DockStyle.Fill; fsledger.Show(); fsledger.BringToFront(); fsledger.Focus(); fsledger.SetAction(BtnEvent.New, null); fsledger.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fledger == null) { fledger = new FLedger(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fledger.SetAction(BtnEvent.Open, pkValue); } }