private void RefreshIsActive() { if (!_refreshPending) { _refreshPending = true; SmartDispatcher.RunAsync(DoRefresh); } }
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))); } } }
public void SetError(string message) { SmartDispatcher.RunAsync(() => DisplayError(message)); }