private void RemoveFinishedActions() { for (int i = 0; i < finishedActions.Count; i++) { ActiveActions.Remove(finishedActions[i]); } finishedActions.Clear(); }
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 }); }
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 }); }
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 }); }