private void BuildForm() { if (fsizes == null) { fsizes = new FSizes(); } fsizes.FSizes_NeedToRefresh += VSizes_NeedToRefresh; Parent.Controls.Add(fsizes); fsizes.Dock = DockStyle.Fill; fsizes.Show(); fsizes.BringToFront(); }
void txt_sizes_NewEntryNeeded(object sender, string pValue) { if (fssizes == null) { fssizes = new FSizes(); } Parent.Controls.Add(fssizes); fssizes.Dock = DockStyle.Fill; fssizes.Show(); fssizes.BringToFront(); fssizes.Focus(); fssizes.SetAction(BtnEvent.New, null); fssizes.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fsizes == null) { fsizes = new FSizes(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fsizes.SetAction(BtnEvent.Open, pkValue); } }