private void BuildForm() { if (freceipttype == null) { freceipttype = new FReceipttype(); } freceipttype.FReceipttype_NeedToRefresh += VReceipttype_NeedToRefresh; Parent.Controls.Add(freceipttype); freceipttype.Dock = DockStyle.Fill; freceipttype.Show(); freceipttype.BringToFront(); }
void txt_receipttype_NewEntryNeeded(object sender, string pValue) { if (fsreceipttype == null) { fsreceipttype = new FReceipttype(); } Parent.Controls.Add(fsreceipttype); fsreceipttype.Dock = DockStyle.Fill; fsreceipttype.Show(); fsreceipttype.BringToFront(); fsreceipttype.Focus(); fsreceipttype.SetAction(BtnEvent.New, null); fsreceipttype.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (freceipttype == null) { freceipttype = new FReceipttype(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { freceipttype.SetAction(BtnEvent.Open, pkValue); } }