private void BuildForm() { if (fcity == null) { fcity = new FCity(); } fcity.FCity_NeedToRefresh += VCity_NeedToRefresh; Parent.Controls.Add(fcity); fcity.Dock = DockStyle.Fill; fcity.Show(); fcity.BringToFront(); }
void txt_city_NewEntryNeeded(object sender, string pValue) { if (fscity == null) { fscity = new FCity(); } Parent.Controls.Add(fscity); fscity.Dock = DockStyle.Fill; fscity.Show(); fscity.BringToFront(); fscity.Focus(); fscity.SetAction(BtnEvent.New, null); fscity.SetFocus(); }
void txt_city_NewEntryNeeded(object sender, string pValue) { if (xcity == null) { xcity = new FCity(); xcity.FCity_NeedToRefresh += City_NeedToRefresh; } this.Parent.Controls.Add(xcity); xcity.Dock = DockStyle.Fill; xcity.Show(); xcity.BringToFront(); xcity.Focus(); xcity.SetAction(BtnEvent.New, null); xcity.SetFocus(); xcity.setname(pValue); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fcity == null) { fcity = new FCity(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fcity.SetAction(BtnEvent.Open, pkValue); } }