Ejemplo n.º 1
0
        private void btnLoad_Click(object sender, RoutedEventArgs e)
        {
            string externalLabelledPath = "";
            string internalLabelledPath = "";

            //go into each folder
            foreach (string IntsExtsPath in Directory.GetDirectories(txtSuperFolder.Text))
            {
                //get the Labelled Images folder
                foreach (string labelledImagePath in Directory.GetDirectories(IntsExtsPath, "Labelled Images"))
                {
                    if (IntsExtsPath.Contains("External"))
                    {
                        externalLabelledPath = labelledImagePath;
                    }
                    else if (IntsExtsPath.Contains("Internal"))
                    {
                        internalLabelledPath = labelledImagePath;
                    }
                }
            }
            if (string.IsNullOrEmpty(externalLabelledPath) ||
                string.IsNullOrEmpty(internalLabelledPath))
            {
                System.Windows.MessageBox.Show("Either internal or external folder paths in empty");
            }
            ASAMSummary summary = new ASAMSummary(externalLabelledPath, internalLabelledPath);

            summary.ShowDialog();
        }
Ejemplo n.º 2
0
        private void btnLoad_Click(object sender, RoutedEventArgs e)
        {
            string externalLabelledPath = "";
            string internalLabelledPath = "";

            //go into each folder
            foreach (string IntsExtsPath in Directory.GetDirectories(txtSuperFolder.Text))
            {
                //get the Labelled Images folder
                foreach (string labelledImagePath in Directory.GetDirectories(IntsExtsPath, "Labelled Images"))
                {

                    if (IntsExtsPath.Contains("External"))
                    {
                        externalLabelledPath = labelledImagePath;
                    }
                    else if (IntsExtsPath.Contains("Internal"))
                    {
                        internalLabelledPath = labelledImagePath;
                    }
                }
            }
            if (string.IsNullOrEmpty(externalLabelledPath) ||
                string.IsNullOrEmpty(internalLabelledPath))
            {
                System.Windows.MessageBox.Show("Either internal or external folder paths in empty");
            }
            ASAMSummary summary = new ASAMSummary(externalLabelledPath, internalLabelledPath);
            summary.ShowDialog();
        }
Ejemplo n.º 3
0
 private void btnCreateASAMReport_Click(object sender, RoutedEventArgs e)
 {
     ASAMSummary ASS = new ASAMSummary();
     ASS.ShowDialog();
 }
Ejemplo n.º 4
0
        private void btnCreateASAMReport_Click(object sender, RoutedEventArgs e)
        {
            ASAMSummary ASS = new ASAMSummary();

            ASS.ShowDialog();
        }