Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 private void RefreshListBox()
 {
     ItemsBox.DataSource = data.GetItems().Keys.ToList();
 }