private void BuildForm() { if (fmonth == null) { fmonth = new FMonth(); } fmonth.FMonth_NeedToRefresh += VMonth_NeedToRefresh; Parent.Controls.Add(fmonth); fmonth.Dock = DockStyle.Fill; fmonth.Show(); fmonth.BringToFront(); }
void txt_month_NewEntryNeeded(object sender, string pValue) { if (fsmonth == null) { fsmonth = new FMonth(); } Parent.Controls.Add(fsmonth); fsmonth.Dock = DockStyle.Fill; fsmonth.Show(); fsmonth.BringToFront(); fsmonth.Focus(); fsmonth.SetAction(BtnEvent.New, null); fsmonth.SetFocus(); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fmonth == null) { fmonth = new FMonth(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fmonth.SetAction(BtnEvent.Open, pkValue); } }