void Options_OptionChanged(object sender, EditorOptionChangedEventArgs e) { if (e.OptionId == DefaultDsTextViewOptions.HighlightRelatedKeywordsName) { IsEnabled = documentViewer.TextView.Options.IsHighlightRelatedKeywordsEnabled(); IsEnabledChanged?.Invoke(this, EventArgs.Empty); } }
public void Stop() { ResetUpload(); bool wasEnabled = ObjectEx.GetAndReplace(ref isEnabled, false); if (wasEnabled) { IsEnabledChanged?.Invoke(this, false); } }
// add enable, because auto start does not wait before upload - same call like from UI public void Start() { bool wasEnabled = ObjectEx.GetAndReplace(ref isEnabled, true); if (wasEnabled == false || IsWorking == false) { IsEnabledChanged?.Invoke(this, true); _timeoutStepper.Reset(); StartUpload(false); } }
protected virtual void OnIsEnabledChanged(AccountViewModel account) { var enevtArgs = new AccountEventArgs(account); IsEnabledChanged?.Invoke(this, enevtArgs); }
/// <summary> /// Raises the <see cref="IsEnabledChanged" /> event. /// </summary> protected void RaiseIsEnabledChanged() { IsEnabledChanged?.Invoke(this, EventArgs.Empty); }
public void OnIsEnabledChanged(bool value) { IsEnabledChanged?.Invoke(value); }
private void OnIsEnabledChanged() => IsEnabledChanged?.Invoke(this, EventArgs.Empty);
protected virtual void OnIsEnabledChanged(EventArgs e) { IsEnabledChanged?.Invoke(this, e); }
protected virtual void OnIsEnabledChanged() => IsEnabledChanged?.Invoke(this, EventArgs.Empty);
private void OnIsEnabledChanged(bool e) { IsEnabledChanged?.Invoke(this, e); }
protected void RaiseIsEnabledChanged() { IsEnabledChanged?.Invoke(this, new PropertyChangedEventArgs(null)); }