예제 #1
0
        public MainViewModel(ViewController viewController, DialogService dialogs, Project project, Analyzer analyzer, BackgroundExecution backgroundExecution)
        {
            _tabBuilder          = new TabBuilder(this);
            _viewController      = viewController;
            _dialogs             = dialogs;
            _project             = project;
            _analyzer            = analyzer;
            _backgroundExecution = backgroundExecution;

            SetupCommand           = new DelegateCommand(SetupClick);
            UpdateCommand          = new DelegateCommand(UpdateClick);
            FragmentationCommand   = new DelegateCommand(FragmentationClick);
            LoadDataCommand        = new DelegateCommand(LoadDataClick);
            SaveDataCommand        = new DelegateCommand(SaveDataClick);
            SummaryCommand         = new DelegateCommand(SummaryClick);
            CommentsCommand        = new DelegateCommand(CommentsClick);
            KnowledgeCommand       = new DelegateCommand(KnowledgeClick);
            KnowledgeLossCommand   = new DelegateCommand(KnowledgeLossClick);
            HotspotsCommand        = new DelegateCommand(HotspotsClick);
            CodeAgeCommand         = new DelegateCommand(CodeAgeClick);
            ChangeCouplingCommand  = new DelegateCommand(ChangeCouplingClick);
            AboutCommand           = new DelegateCommand(AboutClick);
            PredictHotspotsCommand = new DelegateCommand(PredictHotspotsClick);
        }