예제 #1
0
 public void InvalidateAll()
 {
     OnTitleChanged?.Invoke();
     OnIconChanged?.Invoke();
     OnOverlayIconChanged?.Invoke();
     OnAttentionIconChanged?.Invoke();
     OnTooltipChanged?.Invoke();
 }
예제 #2
0
파일: TitleView.cs 프로젝트: pre078/ApsimX
 /// <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);
     }
 }
예제 #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);
     }
 }
예제 #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);
     }
 }