Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            AppDomain.CurrentDomain.DomainUnload += CurrentDomain_DomainUnload;

            Directory.CreateDirectory("Calculation/CO_Data");
            Directory.CreateDirectory("Calculation/Experimental_Data");
            Directory.CreateDirectory("Calculation/Background/Images");

            Directory.CreateDirectory("Calculation/CO_Data/XML_Files");
            Directory.CreateDirectory("Calculation/Experimental_Data/XML_Files");

            Directory.CreateDirectory("Calculation/CO_Data/Images");
            Directory.CreateDirectory("Calculation/Experimental_Data/Images");

            m_commonVM = this.Resources["CommonViewModel"] as Common_ViewModel;
            var hdriVM   = this.Resources["HDRIViewModel"] as HDRI_ViewModel;
            var strobeVm = this.Resources["StrobViewModel"] as Stroboscope_ViewModel;
            var calcVM   = this.Resources["CalculationViewModel"] as Calculation_ViewModel;

            m_calcVM = calcVM;

            VideoStreamProcessor processor = new VideoStreamProcessor(m_commonVM, calcVM, strobeVm, hdriVM);
        }
Esempio n. 2
0
 public VideoStreamProcessor(Common_ViewModel commVM, Calculation_ViewModel calcVM, Stroboscope_ViewModel strobeVM, HDRI_ViewModel hdriVM)
 {
     m_commonViewModel                = commVM; m_calculationsViewModel = calcVM; m_stroboscopeViewModel = strobeVM;
     m_HDRI_ViewModel                 = hdriVM;
     m_commonViewModel.Processor      = this; m_calculationsViewModel.Processor = this;
     m_stroboscopeViewModel.Processor = this; m_HDRI_ViewModel.Processor = this;
     m_actions = new ConcurrentDictionary <string, ActionPresenter>();
     m_isHereActionChangingResultImage = false;
     m_isContinue         = false;
     m_threadsCoordinator = new AutoResetEvent(false);
     m_rawImg             = new ManagedImage();
     m_cameraCtrlDialog   = new CameraControlDialog();
 }