private void BuildForm() { if (fledgergroup == null) { fledgergroup = new FLedgergroup(); } fledgergroup.FLedgergroup_NeedToRefresh += VLedgergroup_NeedToRefresh; Parent.Controls.Add(fledgergroup); fledgergroup.Dock = DockStyle.Fill; fledgergroup.Show(); fledgergroup.BringToFront(); }
void txt_ledgergroup_NewEntryNeeded(object sender, string pValue) { if (fsledgergroup == null) { fsledgergroup = new FLedgergroup(); } Parent.Controls.Add(fsledgergroup); fsledgergroup.Dock = DockStyle.Fill; fsledgergroup.Show(); fsledgergroup.BringToFront(); fsledgergroup.Focus(); fsledgergroup.SetAction(BtnEvent.New, null); fsledgergroup.SetFocus(); }
void Txt_ledgergroup_NewEntryNeeded(object sender, string pValue) { if (xledgergroup == null) { xledgergroup = new FLedgergroup(); xledgergroup.FLedgergroup_NeedToRefresh += Ledgergroup_NeedToRefresh; } this.Parent.Controls.Add(xledgergroup); xledgergroup.Dock = DockStyle.Fill; xledgergroup.Show(); xledgergroup.BringToFront(); xledgergroup.Focus(); xledgergroup.SetAction(BtnEvent.New, null); xledgergroup.SetFocus(); xledgergroup.setname(pValue); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fledgergroup == null) { fledgergroup = new FLedgergroup(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fledgergroup.SetAction(BtnEvent.Open, pkValue); } }