Beispiel #1
0
 public void InvalidateAll()
 {
     OnTitleChanged?.Invoke();
     OnIconChanged?.Invoke();
     OnOverlayIconChanged?.Invoke();
     OnAttentionIconChanged?.Invoke();
     OnTooltipChanged?.Invoke();
 }
Beispiel #2
0
 /// <summary>
 /// When the user changes the combo box check to see if the text has changed.
 /// If so then invoke the 'OnPositionChanged' event so that the presenter can pick it up.
 /// </summary>
 private void OnPositionComboChanged(object sender, EventArgs e)
 {
     if (OriginalText == null)
     {
         OriginalText = TitleTextBox.Text;
     }
     if (TitleTextBox.Text != OriginalText && OnTitleChanged != null)
     {
         OriginalText = TitleTextBox.Text;
         OnTitleChanged.Invoke(TitleTextBox.Text);
     }
 }
Beispiel #3
0
 /// <summary>
 /// When the user changes the combo box check to see if the text has changed.
 /// If so then invoke the 'OnPositionChanged' event so that the presenter can pick it up.
 /// </summary>
 private void OnPositionComboChanged(object sender, EventArgs e)
 {
     if (originalText == null)
     {
         originalText = entry1.Text;
     }
     if (entry1.Text != originalText && OnTitleChanged != null)
     {
         originalText = entry1.Text;
         OnTitleChanged.Invoke(entry1.Text);
     }
 }
Beispiel #4
0
 /// <summary>
 /// When the user changes the combo box check to see if the text has changed.
 /// If so then invoke the 'OnPositionChanged' event so that the presenter can pick it up.
 /// </summary>
 private void OnPositionComboChanged(object sender, EventArgs e)
 {
     try
     {
         if (originalText == null)
         {
             originalText = entry1.Text;
         }
         if (entry1.Text != originalText && OnTitleChanged != null)
         {
             originalText = entry1.Text;
             OnTitleChanged.Invoke(entry1.Text);
         }
     }
     catch (Exception err)
     {
         ShowError(err);
     }
 }