void txt_cash_receipt_NewEntryNeeded(object sender, string pValue) { if (fscash_receipt == null) { fscash_receipt = new FCash_receipt(); } Parent.Controls.Add(fscash_receipt); fscash_receipt.Dock = DockStyle.Fill; fscash_receipt.Show(); fscash_receipt.BringToFront(); fscash_receipt.Focus(); fscash_receipt.SetAction(BtnEvent.New, null); fscash_receipt.SetFocus(); }
void Txt_cash_receipt_NewEntryNeeded(object sender, string pValue) { if (xcash_receipt == null) { xcash_receipt = new FCash_receipt(); xcash_receipt.FCash_receipt_NeedToRefresh += Cash_receipt_NeedToRefresh; } this.Parent.Controls.Add(xcash_receipt); xcash_receipt.Dock = DockStyle.Fill; xcash_receipt.Show(); xcash_receipt.BringToFront(); xcash_receipt.Focus(); xcash_receipt.SetAction(BtnEvent.New, null); xcash_receipt.SetFocus(); xcash_receipt.setname(pValue); }