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); }