void Options_OptionChanged(object sender, EditorOptionChangedEventArgs e)
 {
     if (e.OptionId == DefaultDsTextViewOptions.HighlightRelatedKeywordsName)
     {
         IsEnabled = documentViewer.TextView.Options.IsHighlightRelatedKeywordsEnabled();
         IsEnabledChanged?.Invoke(this, EventArgs.Empty);
     }
 }
Exemple #2
0
        public void Stop()
        {
            ResetUpload();

            bool wasEnabled = ObjectEx.GetAndReplace(ref isEnabled, false);

            if (wasEnabled)
            {
                IsEnabledChanged?.Invoke(this, false);
            }
        }
Exemple #3
0
        // 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);
        }
Exemple #5
0
 /// <summary>
 /// Raises the <see cref="IsEnabledChanged" /> event.
 /// </summary>
 protected void RaiseIsEnabledChanged()
 {
     IsEnabledChanged?.Invoke(this, EventArgs.Empty);
 }
Exemple #6
0
 public void OnIsEnabledChanged(bool value)
 {
     IsEnabledChanged?.Invoke(value);
 }
Exemple #7
0
 private void OnIsEnabledChanged() => IsEnabledChanged?.Invoke(this, EventArgs.Empty);
Exemple #8
0
 protected virtual void OnIsEnabledChanged(EventArgs e)
 {
     IsEnabledChanged?.Invoke(this, e);
 }
Exemple #9
0
 protected virtual void OnIsEnabledChanged() => IsEnabledChanged?.Invoke(this, EventArgs.Empty);
Exemple #10
0
 private void OnIsEnabledChanged(bool e)
 {
     IsEnabledChanged?.Invoke(this, e);
 }
 protected void RaiseIsEnabledChanged()
 {
     IsEnabledChanged?.Invoke(this, new PropertyChangedEventArgs(null));
 }