Exemple #1
0
 private void customIconTextEdit1_IconClick(object sender, MouseEventArgs e)
 {
     CustomIconTextEdit.CustomIconTextEdit editor = sender as CustomIconTextEdit.CustomIconTextEdit;
     if (editor != null)
     {
         this.Text = editor.Name + ".Text = " + editor.Text;
     }
 }
Exemple #2
0
 private void customIconTextEdit1_Properties_OnIconSelection(object sender, OnIconSelectionEventArgs e)
 {
     CustomIconTextEdit.CustomIconTextEdit editor = sender as CustomIconTextEdit.CustomIconTextEdit;
     if (editor != null)
     {
         if (editor.Enabled)
         {
             if (editor.ContainsFocus)
             {
                 e.ImageIndex = 0;
             }
             else
             {
                 e.ImageIndex = 1;
             }
         }
         else
         {
             e.ImageIndex = 2;
         }
     }
 }