public void OnUpdateStateChanged(UpdateStateChangedEventArgs e) { if (e.Ready) { if (RemindRequired(e) && _userAuth.LoggedIn) { Show(); } } else { Hide(); } }
public void OnUpdateStateChanged(UpdateStateChangedEventArgs e) { if (e.Ready) { if (RemindRequired(e)) { Show(); } } else { Hide(); } }
public void OnUpdateStateChanged(UpdateStateChangedEventArgs e) { _updateState = e; }
private bool RemindRequired(UpdateStateChangedEventArgs e) { return(e.Status == UpdateStatus.Ready && (e.ManualCheck || DateTime.Now - _lastNotified >= _remindInterval)); }