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); }