//-------------------------------------------------- private async void CreatePlayerTroops_Tick(object sender, EventArgs e) { ((Timer)sender).Enabled = false; ((Timer)sender).Dispose(); //----------------------------------------------- PlayerTroops = TroopManager.GetTroopManager(Troop.GetBasicTroops()); //----------------------------------------------- //----------------------------------------------- await Troop.CreatePlayerTroops(PlayerTroops.Troops); //----------------------------------------------- ((CreateProfileSandBox)ThereIsConstants.Forming.TheMainForm.ShowingSandBox).IsCreatingEnded4 = true; GC.Collect(); }