private void ButtonCalc_Click(object sender, EventArgs e)
        {
            List <string> timetableFactParts = new List <string>();

            foreach (ListViewItem item in listViewTimetableFactParts.Items)
            {
                timetableFactParts.Add(item.SubItems[0].Text);
            }

            List <string> operatorsQualityParts = new List <string>();

            foreach (ListViewItem item in listViewOperatorsQualityParts.Items)
            {
                operatorsQualityParts.Add(item.SubItems[0].Text);
            }

            ExcelParser excelParser = new ExcelParser(
                textBoxEmployeesList.Text,
                textBoxTimetablePlan.Text,
                timetableFactParts.ToArray(),
                operatorsQualityParts.ToArray(),
                textBoxOperatorsWorktime.Text,
                textBoxAcceptedAndMissedCalls.Text,
                dateTimePicker.Value);

            FormDetails form = new FormDetails(excelParser);

            form.Width  = Width;
            form.Height = Height;
            form.ShowDialog();
        }
예제 #2
0
 public FormDetails(ExcelParser excelParser)
 {
     InitializeComponent();
     this.excelParser = excelParser;
 }