private bool reDoneSalaries;//for users that changed salaries already public void ShowWorkers() { if (!reDoneSalaries) { reDoneSalaries = true; BuildingPot.Control.Registro.DoEquealPaymentForAllWorks(); } _report.Clear(); var list = BuildingPot.Control.Registro.StringOfAllBuildingsThatAreAWork().Distinct().ToList(); //list.Insert(0, "Unemployed"); ShowWorkers(list); _bulletinWindow.AdjustContentHeight(list.Count * 5.2f); }
private void ShowProductionReport(List <Inventory> list) { Hide(); _bulletinWindow.ShowScrool(); var itemsOnReport = 0; for (int i = 0; i < ShowLastYears(list); i++) { var a = new ShowAInventory(list[i], _bulletinWindow.Content.gameObject, _bulletinWindow.ScrollIniPosGo.transform.localPosition + new Vector3(0, itemsOnReport * -3.7f, 0)); _reports.Add(a); itemsOnReport += list[i].InventItems.Count; } _bulletinWindow.AdjustContentHeight(ItemsOnReport(_productionReport.ConsumeReport) * 1.5f); }
internal void ShowBudget() { ShowBudgetAccts(_financeLogger.ResumenCurrentBudget(Program.gameScene.GameTime1.Year)); _bulletinWindow.AdjustContentHeight(_reportsBudget.Count * 4.7f); }