private void BuildForm() { if (fpo == null) { fpo = new FPo(); } fpo.FPo_NeedToRefresh += VPo_NeedToRefresh; Parent.Controls.Add(fpo); fpo.Dock = DockStyle.Fill; fpo.Show(); fpo.BringToFront(); }
void txt_po_NewEntryNeeded(object sender, string pValue) { if (fspo == null) { fspo = new FPo(); } Parent.Controls.Add(fspo); fspo.Dock = DockStyle.Fill; fspo.Show(); fspo.BringToFront(); fspo.Focus(); fspo.SetAction(BtnEvent.New, null); fspo.SetFocus(); }
void Txt_po_NewEntryNeeded(object sender, string pValue) { if (xpo == null) { xpo = new FPo(); xpo.FPo_NeedToRefresh += Po_NeedToRefresh; } this.Parent.Controls.Add(xpo); xpo.Dock = DockStyle.Fill; xpo.Show(); xpo.BringToFront(); xpo.Focus(); xpo.SetAction(BtnEvent.New, null); xpo.SetFocus(); xpo.setname(pValue); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fpo == null) { fpo = new FPo(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fpo.SetAction(BtnEvent.Open, pkValue); } }