示例#1
0
 private void RefreshIsActive()
 {
     if (!_refreshPending)
     {
         _refreshPending = true;
         SmartDispatcher.RunAsync(DoRefresh);
     }
 }
示例#2
0
        protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            var eventHandler = this.PropertyChanged;

            if (eventHandler != null)
            {
                if (SmartDispatcher.HasThreadAccess)
                {
                    eventHandler(this, new PropertyChangedEventArgs(propertyName));
                }
                else
                {
                    SmartDispatcher.RunAsync(() => eventHandler(this, new PropertyChangedEventArgs(propertyName)));
                }
            }
        }
示例#3
0
 public void SetError(string message)
 {
     SmartDispatcher.RunAsync(() => DisplayError(message));
 }