private void BuildForm() { if (fcompany_bank == null) { fcompany_bank = new FCompany_bank(); } fcompany_bank.FCompany_bank_NeedToRefresh += VCompany_bank_NeedToRefresh; Parent.Controls.Add(fcompany_bank); fcompany_bank.Dock = DockStyle.Fill; fcompany_bank.Show(); fcompany_bank.BringToFront(); }
void txt_company_bank_NewEntryNeeded(object sender, string pValue) { if (fscompany_bank == null) { fscompany_bank = new FCompany_bank(); } Parent.Controls.Add(fscompany_bank); fscompany_bank.Dock = DockStyle.Fill; fscompany_bank.Show(); fscompany_bank.BringToFront(); fscompany_bank.Focus(); fscompany_bank.SetAction(BtnEvent.New, null); fscompany_bank.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fcompany_bank == null) { fcompany_bank = new FCompany_bank(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fcompany_bank.SetAction(BtnEvent.Open, pkValue); } }