public void UpdateIdleState() { if (!NetworkInterface.GetIsNetworkAvailable()) { currentState = SyncStateState.NoConnection; OnPropertyChanged("CurrentState"); return; } if (!ChannelsManager.Channels.Any(c => c.Configuration.IsConnected)) { currentState = SyncStateState.NoChannels; OnPropertyChanged("CurrentState"); return; } progress = 0; currentState = SyncStateState.Completed; OnPropertyChanged("CurrentState"); }
public void UpdateIdleState() { if (!NetworkInterface.GetIsNetworkAvailable()) { currentState = SyncStateState.NoConnection; OnPropertyChanged("CurrentState"); return; } if (!ChannelsManager.Channels.Any(c => c.Configuration.IsConnected)) { currentState = SyncStateState.NoChannels; OnPropertyChanged("CurrentState"); return; } progress = 0; currentState = SyncStateState.Completed; OnPropertyChanged("CurrentState"); }
public void SetSyncState(SyncStateState currentState) { this.currentState = currentState; OnPropertyChanged("CurrentState"); }
public SyncState() { currentState = SyncStateState.NoChannels; NetworkChange.NetworkAvailabilityChanged += delegate { UpdateIdleState(); }; }
public void SetSyncState(SyncStateState currentState) { this.currentState = currentState; OnPropertyChanged("CurrentState"); }
public SyncState() { currentState = SyncStateState.NoChannels; NetworkChange.NetworkAvailabilityChanged += delegate { UpdateIdleState(); }; }