Ejemplo n.º 1
0
        public ProfileViewModel()
        {
            PathExe = Properties.Settings.Default.PathToExe;
            PathDb  = Properties.Settings.Default.PathToDb;

            _isActive        = false;
            ProfilesList     = dbHelper.GetProfiles(PathDb);
            CommandsList     = Commands.GetCommandsList();
            Items            = CollectionViewSource.GetDefaultView(ProfilesList);
            Items.Filter     = FilterProfile;
            DoStuffCommand   = new RelayCommand(ExecuteCommand, DoStuffCanExecute);
            SelectAllCommand = new RelayCommand(SelectAll);
            ClearAllCommand  = new RelayCommand(ClearAll, ClearCanExecute);
            PathCommand      = new RelayCommand(PathButton);
            PathExeCommand   = new RelayCommand(PathExeBtn);
            PathDbCommand    = new RelayCommand(PathDbBtn);
        }