private void BuildForm() { if (fcountry == null) { fcountry = new FCountry(); } fcountry.FCountry_NeedToRefresh += VCountry_NeedToRefresh; Parent.Controls.Add(fcountry); fcountry.Dock = DockStyle.Fill; fcountry.Show(); fcountry.BringToFront(); }
void txt_country_NewEntryNeeded(object sender, string pValue) { if (fscountry == null) { fscountry = new FCountry(); } Parent.Controls.Add(fscountry); fscountry.Dock = DockStyle.Fill; fscountry.Show(); fscountry.BringToFront(); fscountry.Focus(); fscountry.SetAction(BtnEvent.New, null); fscountry.SetFocus(); }
void txt_country_NewEntryNeeded(object sender, string pValue) { if (xcountry == null) { xcountry = new FCountry(); xcountry.FCountry_NeedToRefresh += Country_NeedToRefresh; } this.Parent.Controls.Add(xcountry); xcountry.Dock = DockStyle.Fill; xcountry.Show(); xcountry.BringToFront(); xcountry.Focus(); xcountry.SetAction(BtnEvent.New, null); xcountry.SetFocus(); xcountry.setname(pValue); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fcountry == null) { fcountry = new FCountry(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fcountry.SetAction(BtnEvent.Open, pkValue); } }