Example #1
0
        private void SaveAsData(object parametr)
        {
            ExperementalDataFormView formToBeFillIn = new ExperementalDataFormView();
            BitmapSource             imgSrc         = m_processor.LastResultImage as BitmapSource;

            formToBeFillIn.Image = imgSrc;
            ExperementalDataFormViewModel vm = formToBeFillIn.Resources["dataVM"] as ExperementalDataFormViewModel;

            vm.CurrentConcentration = this.CurrentCancentrationValue;
            formToBeFillIn.Show();
        }
Example #2
0
 public Calculation_ViewModel()
 {
     this.BackgroundData                = new List <DataPresenter>();
     this.ControlSamplesData            = new List <DataPresenter>();
     m_initialSelectingAreaLength       = 10;
     this.SelectingAreaLength           = m_initialSelectingAreaLength;
     this.NumberOfImagesInNormalization = 3;
     m_cursorPosition = new Point(0, 0);
     this.SelectionModeClickCommand          = new CommandDelegate(ActivateSelectionMode);
     this.MemorizeAsBackgroundDataCommand    = new CommandDelegate(MemorizeAsBckrndData);
     this.MemorizeAsControlSampleDataCommand = new CommandDelegate(MemorizeAsCOData);
     this.SaveAsBackgroundDataCommand        = new CommandDelegate(SaveAsBackgroundData);
     this.SaveAsControlSampleDataCommand     = new CommandDelegate(SaveAsControlSampleData);
     this.SaveAsDataCommand           = new CommandDelegate(SaveAsData);
     this.SeeBackgroundDataCommand    = new CommandDelegate(SeeBackgroundData);
     this.SeeControlSampleDataCommand = new CommandDelegate(SeeControlSampleData);
     this.SeeExperimantalDataCommand  = new CommandDelegate(SeeExperimantalData);
     m_dataFormWindow = new ExperementalDataFormView();
 }