Esempio n. 1
0
        public void Dispose()
        {
            if (_timer != null)
            {
                _timer.IsEnabled = false;
            }

            TaskbarService.Delete(this);
        }
Esempio n. 2
0
 public void Set(TaskbarState state, double value)
 {
     ActionExtension.InvokeInMainThreadAsync(() => {
         if (state != _state || value != _value)
         {
             _state = state;
             _value = value;
             TaskbarService.Update();
         }
     });
 }