//updates all fields displayed to represent new data public void UpdatePageContents() { ClearListBoxContents(); StaffMemberLabel.Text = newEvent.GetEmployeeCount().ToString(); StoresLabel.Text = newEvent.GetStoreCount().ToString(); FillListBoxContents(); }
//updates all catagories on current page public void UpdatePageData() { EventNameBox.Text = storedEvent.eventName; EmployeeCountTextBox.Text = storedEvent.GetEmployeeCount().ToString(); SoldItemTextBox.Text = SoldItemCount().ToString(); StoreCountTextBox.Text = storedEvent.GetStoreCount().ToString(); ProductCostTextBox.Text = FormatNumber(InitialInvestmentCalc()); UniqueItemCountTextBox.Text = storedEvent.GetItemCount().ToString(); ProffitLabel.Text = FormatNumber(storedEvent.GetEventProfit()); FillStoreBarChart(SumStoreProfChart); FillProffitPieChart(InvestmentCompareChart); }