예제 #1
0
        private void btn_status_car_Click(object sender, EventArgs e)
        {
            int status      = 0;
            var directories = CustomSearcher.GetDirectories(directory);

            foreach (string backdirectory in directories)
            {
                if (backdirectory.Contains("Car_Back")) // Will match once.
                {
                    status = 1;
                }
            }

            frm_stat_car frm_stat_car = new frm_stat_car(directory, status, this);


            frm_stat_car.Show();
        }
예제 #2
0
        private void frm_page1_Load(object sender, EventArgs e)
        {
            int counter     = 0;
            var directories = CustomSearcher.GetDirectories(location);

            foreach (string backdirectory in directories)
            {
                if (!backdirectory.Substring(8).Contains("matlab"))
                {
                    comboBox1.Items.Add(backdirectory.Substring(8));
                    counter++;
                }
            }
            if (counter > 0)
            {
                comboBox1.SelectedIndex = 0;
            }
            //comboBox1.DataSource = directories;
        }