private ItemControl_StringList CreateItemControl_StringList() { ItemControl_StringList sl = new ItemControl_StringList(); Control[] cs = new Control[] { sl.btnAdd, sl.btnRemove, sl.tb, sl.lbStringList }; foreach (Control c in cs) { c.GotFocus += (s, e) => { OnShowDescription?.Invoke(this, new ShowDescriptionEventArgs(Meaning, Description)); }; } return(sl); }
private void Item_OnShowDescription(SettingsItem sender, ShowDescriptionEventArgs e) { OnShowDescription?.Invoke(sender, e); }
private void MainControl_GotFocus(object sender, EventArgs e) { OnShowDescription?.Invoke(this, new ShowDescriptionEventArgs(Meaning, Description)); }