void Txt_contacttype_NewEntryNeeded(object sender, string pValue) { if (fscontacttype == null) { fscontacttype = new FContacttype(); } Parent.Controls.Add(fscontacttype); fscontacttype.Dock = DockStyle.Fill; fscontacttype.Show(); fscontacttype.BringToFront(); fscontacttype.Focus(); fscontacttype.SetAction(BtnEvent.New, null); fscontacttype.SetFocus(); }
void Txt_contacttype_NewEntryNeeded(object sender, string pValue) { if (xcontacttype == null) { xcontacttype = new FContacttype(); xcontacttype.FContacttype_NeedToRefresh += Contacttype_NeedToRefresh; } this.Parent.Controls.Add(xcontacttype); xcontacttype.Dock = DockStyle.Fill; xcontacttype.Show(); xcontacttype.BringToFront(); xcontacttype.Focus(); xcontacttype.SetAction(BtnEvent.New, null); xcontacttype.SetFocus(); xcontacttype.setname(pValue); }