private void StateChanged(object sender, SyncthingStateChangedEventArgs e) { this.SyncthingState = e.NewState; if (e.NewState != SyncthingState.Running) { this.SyncthingSyncing = false; // Just make sure we reset this.. } }
private void SyncthingStateChanged(object sender, SyncthingStateChangedEventArgs e) { if (e.NewState != SyncthingState.Running) { this.ClearAllDevices(); } // Else, we'll get DataLoaded shortly }
private void SyncthingStateChanged(object sender, SyncthingStateChangedEventArgs e) { if (e.OldState == SyncthingState.Running) { this.ResetToEmptyGraph(); } this.ShowGraph = e.NewState == SyncthingState.Running; }
private void SyncthingStateChanged(object sender, SyncthingStateChangedEventArgs e) { if (this.syncthingManager.State == SyncthingState.Running) { this.UpdateConnectionStats(0, 0); } else { this.UpdateConnectionStats(null, null); } }
private void StateChanged(object sender, SyncthingStateChangedEventArgs e) { this.Reset(); }
private void SyncthingStateChanged(object sender, SyncthingStateChangedEventArgs e) { this.syncthingState = e.NewState; this.RefreshBrowser(); }