Exemple #1
0
        private void populateScenarioListBox()
        {
            scenarioListBox.Items.Clear();

            List <string> scnList = GenearateOpenFileList.generateScenarioList((GenearateOpenFileList.eListFilter)comboBox1.SelectedIndex);

            for (int i = 0; i < scnList.Count; i++)
            {
                scenarioListBox.Items.Add(scnList[i]);
            }
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (GenearateOpenFileList.IsWorking())
            {
                GenearateOpenFileList.stopWork();
                return;
            }

            statusListBox.Items.Clear();
            timer1.Enabled = true;

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

            for (int i = 0; i < scenarioListBox.SelectedItems.Count; i++)
            {
                scnList.Add(scenarioListBox.SelectedItems[i] as string);
            }

            GenearateOpenFileList.generateFileLists(scnList);

            button1.Text = "STOP";
        }