private void BuildForm() { if (fmpath == null) { fmpath = new FSpath(); } fmpath.FSpath_NeedToRefresh += VMpath_NeedToRefresh; Parent.Controls.Add(fmpath); fmpath.Dock = DockStyle.Fill; fmpath.Show(); fmpath.BringToFront(); }
void txt_mpath_NewEntryNeeded(object sender, string pValue) { if (fsmpath == null) { fsmpath = new FSpath(); } Parent.Controls.Add(fsmpath); fsmpath.Dock = DockStyle.Fill; fsmpath.Show(); fsmpath.BringToFront(); fsmpath.Focus(); fsmpath.SetAction(BtnEvent.New, null); fsmpath.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fmpath == null) { fmpath = new FSpath(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fmpath.SetAction(BtnEvent.Open, pkValue); } }