Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private void Item_OnShowDescription(SettingsItem sender, ShowDescriptionEventArgs e)
 {
     OnShowDescription?.Invoke(sender, e);
 }
Exemplo n.º 3
0
 private void MainControl_GotFocus(object sender, EventArgs e)
 {
     OnShowDescription?.Invoke(this, new ShowDescriptionEventArgs(Meaning, Description));
 }