Esempio n. 1
0
        //view stat
        private void button1_Click(object sender, EventArgs e)
        {
            String[] arr     = new string[12];
            int      counter = 0;

            foreach (object itemChecked in checkedListBox1.CheckedItems)
            {
                arr[counter] = itemChecked.ToString();
                counter++;
            }
            try
            {
                rList.viewRecords(arr, txtYear.Text);
            }
            catch
            {
                MessageBox.Show("Please check off at least one month and input a year in format XXXX.");
            }
        }