Example #1
0
        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;
        }
Example #2
0
 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();
 }
Example #3
0
        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;
        }
Example #4
0
 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 ();
 }
Example #5
0
        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 ();
        }
Example #6
0
 public override void SetViewModel(IViewModel viewModel)
 {
     VideoPlayer = ((IVideoPlayerDealer)viewModel).VideoPlayer;
     Project     = (viewModel as IProjectDealer)?.Project;
     Capturer    = (viewModel as ICapturerBinDealer)?.Capturer;
 }
Example #7
0
        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;
        }