Example #1
0
        public void GetAllAlgorithmPlans()
        {
            AllTechniques = new ObservableCollection <Technique>();
            ImageProcessingRepository imgProRep = new ImageProcessingRepository();

            AllTechniques = imgProRep.getAllTechnique();
        }
Example #2
0
        public LoadNewDsStep2ViewModel()
        {
            ListofTechniques = new ObservableCollection <Technique>();
            ImageProcessingRepository imgProRep = new ImageProcessingRepository();

            ListofTechniques = imgProRep.getAllTechnique();

            TechniqueAlgorithms = new ObservableCollection <AlgorithmViewModel>();
            SetupCommands();
        }
Example #3
0
 private void ConfirmAndMoveToStep2(object obj)
 {
     if (ValidateFields())
     {
         _LoadNewDsStep2ViewModel.ListOfFiles = ListOfFiles;
         _LoadNewDsStep2ViewModel.ListofTechniques.Clear();
         ImageProcessingRepository imgProRep = new ImageProcessingRepository();
         _LoadNewDsStep2ViewModel.ListofTechniques = imgProRep.getAllTechnique();
         OverallFrame.Content = _LoadNewDsStep2ViewModel;
     }
 }
        /// <summary>
        /// Initializes a new instance of the
        /// <see cref="AlgorithmBuilderViewModel"/> class.
        /// </summary>
        public AlgorithmBuilderViewModel()
        {
            AvailableAlgorithms  = new ObservableCollection <AlgorithmViewModel>();
            SelectedProcesses    = new ObservableCollection <AlgorithmViewModel>();
            SavePipeline         = new PersistPipelineCommand(this);
            LoadPipeline         = new LoadPipelineCommand(this);
            SavePipelineDatabase = new PersistPipelineDatabaseCommand(this);
            MoveDirectToStep3    = new RelayCommand(new Action <object>(_progressToStep3));

            FinishButtonCommand      = new RelayCommand(new Action <object>(ProgressToMainOrStep2));
            _clearSelectedAlgorithms = new RelayCommand(new Action <object>(ClearSelectedCommand), _canClearSelectedAlgorithms);

            SelectedProcesses.CollectionChanged += _chosenProcessesCollectionChanged;

            ListofTechniques = new ObservableCollection <Technique>();
            ImageProcessingRepository imgProRep = new ImageProcessingRepository();

            ListofTechniques = imgProRep.getAllTechnique();

            TechniqueAlgorithms = new ObservableCollection <AlgorithmViewModel>();
        }
        private void ProgressToMainOrStep2(object obj)
        {
            if (FromLoadStep2)
            {
                OverallFrame.Content = _LoadNewDsStep2ViewModel;
                if (_LoadNewDsStep2ViewModel.ListofTechniques != null)
                {
                    _LoadNewDsStep2ViewModel.ListofTechniques.Clear();

                    ImageProcessingRepository imgProRep = new ImageProcessingRepository();
                    _LoadNewDsStep2ViewModel.ListofTechniques = imgProRep.getAllTechnique();
                }
            }
            else if (FromViewAlgorithms)
            {
                _ViewAlgorithmViewModel.GetAllAlgorithmPlans();
                OverallFrame.Content = _ViewAlgorithmViewModel;
            }
            else
            {
                OverallFrame.Content = _ViewExistingDatasetViewModel;
            }
        }