public ContextMenuViewModel(MainViewModel mainWindowViewModel, IApplicationControlService appCtrlService) { this.mainWindowViewModel = mainWindowViewModel; this.appCtrlService = appCtrlService; InitializeCommands(); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel(IAssemblyAnalysisService analysisService, IWindowService windowService, IApplicationControlService appCtrlService) { if (IsInDesignMode) { return; } this.analysisService = analysisService; this.windowService = windowService; this.appCtrlService = appCtrlService; this.contextMenuVM = new ContextMenuViewModel(this, appCtrlService); DropAssemblyCommand = new RelayCommand <DragEventArgs>(AnalyzeDroppedAssembly); ToggleTitleBarVisibilityCommand = contextMenuVM.ToggleTitleBarVisibilityCommand; CloseApplicationCommand = contextMenuVM.CloseApplicationCommand; AnalyzeAssemblyCommand = contextMenuVM.AnalyzeAssemblyCommand; AnalyzeFolderCommand = contextMenuVM.AnalyzeFolderCommand; }