Exemple #1
0
 private void RemoveFinishedActions()
 {
     for (int i = 0; i < finishedActions.Count; i++)
     {
         ActiveActions.Remove(finishedActions[i]);
     }
     finishedActions.Clear();
 }
Exemple #2
0
 protected void callInvestFinished(bool Success, string Message)
 {
     if (ActiveActions.Contains(SiteAction.Invest))
     {
         ActiveActions.Remove(SiteAction.Invest);
     }
     OnWithdrawalFinished?.Invoke(this, new GenericEventArgs {
         Success = Success, Message = Message
     });
 }
Exemple #3
0
 protected void callResetSeedFinished(bool Success, string Message)
 {
     if (ActiveActions.Contains(SiteAction.ResetSeed))
     {
         ActiveActions.Remove(SiteAction.ResetSeed);
     }
     OnResetSeedFinished?.Invoke(this, new GenericEventArgs {
         Success = Success, Message = Message
     });
 }
Exemple #4
0
 protected void callInvestFinished(bool Success, string Message)
 {
     if (ActiveActions.Contains(SiteAction.Invest))
     {
         ActiveActions.Remove(SiteAction.Invest);
     }
     ForceUpdateStats = true;
     OnInvestFinished?.Invoke(this, new GenericEventArgs {
         Success = Success, Message = Message
     });
 }