Пример #1
0
 public ArrowGraphManagerView(
     IArrowGraphManagerViewModel viewModel,
     IFileDialogService fileDialogService,
     IProjectSettingService projectSettingService,
     IEventAggregator eventService)
 {
     m_FileDialogService     = fileDialogService ?? throw new ArgumentNullException(nameof(fileDialogService));
     m_ProjectSettingService = projectSettingService ?? throw new ArgumentNullException(nameof(projectSettingService));
     m_EventService          = eventService ?? throw new ArgumentNullException(nameof(eventService));
     InitializeComponent();
     ViewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
     ArrowGraphAreaCtrl.ShowAllEdgesLabels();
     ArrowGraphAreaCtrl.SetVerticesDrag(true);
     SubscribeToEvents();
 }
Пример #2
0
 public MainView(
     IMainViewModel viewModel,
     IActivitiesManagerViewModel activitiesManagerViewModel,
     IGanttChartManagerViewModel ganttChartManagerViewModel,
     IArrowGraphManagerViewModel arrowGraphManagerViewModel,
     IResourceChartManagerViewModel resourceChartManagerViewModel,
     IEarnedValueChartManagerViewModel earnedValueChartManagerViewModel,
     IEventAggregator eventService)
 {
     ViewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
     m_ActivitiesManagerViewModel       = activitiesManagerViewModel ?? throw new ArgumentNullException(nameof(activitiesManagerViewModel));
     m_GanttChartManagerViewModel       = ganttChartManagerViewModel ?? throw new ArgumentNullException(nameof(ganttChartManagerViewModel));
     m_ArrowGraphManagerViewModel       = arrowGraphManagerViewModel ?? throw new ArgumentNullException(nameof(arrowGraphManagerViewModel));
     m_ResourceChartManagerViewModel    = resourceChartManagerViewModel ?? throw new ArgumentNullException(nameof(resourceChartManagerViewModel));
     m_EarnedValueChartManagerViewModel = earnedValueChartManagerViewModel ?? throw new ArgumentNullException(nameof(earnedValueChartManagerViewModel));
     m_EventService = eventService ?? throw new ArgumentNullException(nameof(eventService));
     InitializeComponent();
 }