private void BuildForm() { if (ftransport == null) { ftransport = new FTransport(); } ftransport.FTransport_NeedToRefresh += VTransport_NeedToRefresh; Parent.Controls.Add(ftransport); ftransport.Dock = DockStyle.Fill; ftransport.Show(); ftransport.BringToFront(); }
void txt_transport_NewEntryNeeded(object sender, string pValue) { if (fstransport == null) { fstransport = new FTransport(); } Parent.Controls.Add(fstransport); fstransport.Dock = DockStyle.Fill; fstransport.Show(); fstransport.BringToFront(); fstransport.Focus(); fstransport.SetAction(BtnEvent.New, null); fstransport.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (ftransport == null) { ftransport = new FTransport(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { ftransport.SetAction(BtnEvent.Open, pkValue); } }