Exemple #1
0
        private void CollectDefaultSettings()
        {
            try
            {
                //solibri versions
                SolibriProperties sp = new SolibriProperties("Solibri Model Checker v9.5", @"C:\Program Files\Solibri\SMCv9.5\Solibri Model Checker v9.5.exe");
                solibries.Add(sp);
                sp = new SolibriProperties("Solibri Model Checker v9.6", @"C:\Program Files\Solibri\SMCv9.6\Solibri Model Checker v9.6.exe");
                solibries.Add(sp);
                sp = new SolibriProperties("Solibri Model Checker v9.7", @"C:\Program Files\Solibri\SMCv9.7\Solibri Model Checker v9.7.exe");
                solibries.Add(sp);
                solibries = solibries.OrderBy(o => o.VersionNumber).ToList();

                comboBoxSolibri.ItemsSource = null;
                comboBoxSolibri.ItemsSource = solibries;

                comboBoxSolibri.DisplayMemberPath = "VersionNumber";

                //remote machines
                RempoteMachine rm = new RempoteMachine("NY", "NY-BAT-D001", @"\\NY-BAT-D001\SolibriBatch");
                remoteComputers.Add(rm);
                RempoteMachine rm2 = new RempoteMachine("PHI", "PHI-BAT-D001", @"\\PHI-BAT-D001\SolibriBatch");
                remoteComputers.Add(rm2);
                RempoteMachine rm3 = new RempoteMachine("HOU", "HOU-BAT-D001", @"\\HOU-BAT-D001\SolibriBatch");
                remoteComputers.Add(rm3);

                remoteComputers = remoteComputers.OrderBy(o => o.ComputerName).ToList();

                comboBoxComputer.ItemsSource       = null;
                comboBoxComputer.ItemsSource       = remoteComputers;
                comboBoxComputer.DisplayMemberPath = "DirectoryName";
            }
            catch (Exception ex)
            {
                MessageBox.Show("Failed to collect default settings.\n" + ex.Message, "Collect Default Settings", MessageBoxButton.OK, MessageBoxImage.Warning);
            }
        }
Exemple #2
0
 public AutorunSettings(SolibriProperties solibri, RempoteMachine remote)
 {
     solibriSetup = solibri;
     remoteSetup  = remote;
 }
Exemple #3
0
 public AutorunSettings()
 {
     solibriSetup = new SolibriProperties("Solibri Model Checker v9.6", @"C:\Program Files\Solibri\SMCv9.6\Solibri Model Checker v9.6.exe");
     remoteSetup  = new RempoteMachine("NY", "NY-BAT-D001", @"\\NY-BAT-D001\SolibriBatch");
 }