void HandleOpenedProjectChanged(Project project, ProjectType projectType, EventsFilter filter, IAnalysisWindow analysisWindow) { this.openedProject = project; this.projectType = projectType; this.filter = filter; if (project == null) { if (framesCapturer != null) { framesCapturer.Dispose(); framesCapturer = null; } return; } if (projectType == ProjectType.FileProject) { framesCapturer = Config.MultimediaToolkit.GetFramesCapturer(); framesCapturer.Open(openedProject.Description.FileSet.First().FilePath); } this.analysisWindow = analysisWindow; player = analysisWindow.Player; capturer = analysisWindow.Capturer; }
void HandleOpenedProjectChanged(Project project, ProjectType projectType, EventsFilter filter, IAnalysisWindow analysisWindow) { this.analysisWindow = analysisWindow; this.capturer = analysisWindow.Capturer; openedProject = project; this.projectType = projectType; if (project == null) { dashboard = null; } else { dashboard = project.Dashboard; } ReloadHotkeys(); }
void HandleOpenedProjectChanged(OpenedProjectEvent e) { this.openedProject = e.Project; this.projectType = e.ProjectType; this.filter = e.Filter; this.analysisWindow = e.AnalysisWindow; player = e.AnalysisWindow.Player; capturer = e.AnalysisWindow.Capturer; }
void HandleOpenedProjectChanged(OpenedProjectEvent e) { this.analysisWindow = e.AnalysisWindow as IAnalysisWindow; capturer = e.AnalysisWindow.Capturer; player = e.AnalysisWindow.Player; openedProject = e.Project as ProjectLongoMatch; this.projectType = e.ProjectType; if (e.Project == null) { dashboard = null; } else { dashboard = e.Project.Dashboard; } ReloadHotkeys (); }
void HandleOpenedProjectChanged(Project project, ProjectType projectType, EventsFilter filter, IAnalysisWindow analysisWindow) { this.analysisWindow = analysisWindow; this.capturer = analysisWindow.Capturer; openedProject = project; this.projectType = projectType; if (project == null) { dashboard = null; } else { dashboard = project.Dashboard; } ReloadHotkeys (); }
public override void SetViewModel(IViewModel viewModel) { VideoPlayer = ((IVideoPlayerDealer)viewModel).VideoPlayer; Project = (viewModel as IProjectDealer)?.Project; Capturer = (viewModel as ICapturerBinDealer)?.Capturer; }
void HandleOpenedProjectChanged(Project project, ProjectType projectType, EventsFilter filter, IAnalysisWindow analysisWindow) { this.openedProject = project; this.projectType = projectType; this.filter = filter; if (project == null) { if (framesCapturer != null) { framesCapturer.Dispose (); framesCapturer = null; } return; } if (projectType == ProjectType.FileProject) { framesCapturer = Config.MultimediaToolkit.GetFramesCapturer (); framesCapturer.Open (openedProject.Description.FileSet.First ().FilePath); } this.analysisWindow = analysisWindow; player = analysisWindow.Player; capturer = analysisWindow.Capturer; }