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