public void InvalidateAll() { OnTitleChanged?.Invoke(); OnIconChanged?.Invoke(); OnOverlayIconChanged?.Invoke(); OnAttentionIconChanged?.Invoke(); OnTooltipChanged?.Invoke(); }
/// <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); } }
/// <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); } }
/// <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); } }