private void InputProcessButton_Click(object sender, EventArgs e) { decimal totalInputPercentage = 0; totalInputPercentage = data.GetItems().Values.Sum(i => i.IncomePercent); if (totalInputPercentage > 100) { MessageBox.Show("The sum of the input percentages of the selected items is greater than 100 percent"); } processSingle = false; processForm.Show(); }
private void RefreshListBox() { ItemsBox.DataSource = data.GetItems().Keys.ToList(); }