Ejemplo n.º 1
0
        public bool GetImages(int experimentIndicatorID)
        {
#if (SIMULATE)
            m_vm.images.Clear();
            ExperimentImageContainer image = new ExperimentImageContainer();
            image.CompressionAlgorithm  = COMPRESSION_ALGORITHM.GZIP;
            image.ExperimentImageID     = 1;
            image.ExperimentIndicatorID = 1;
            image.FilePath      = "C:\\Users\\bryan\\Documents\\Visual Studio 2015\\Projects\\Test\\Test\\bin\\x64\\Debug\\00007087_wgi.zip";
            image.ImageData     = null;
            image.MaxPixelValue = 65535;
            image.MSecs         = 7087;
            image.TimeStamp     = DateTime.Now;
            m_vm.images.Add(image);

            image = new ExperimentImageContainer();
            image.CompressionAlgorithm  = COMPRESSION_ALGORITHM.GZIP;
            image.ExperimentImageID     = 2;
            image.ExperimentIndicatorID = 2;
            image.FilePath      = "C:\\Users\\bryan\\Documents\\Visual Studio 2015\\Projects\\Test\\Test\\bin\\x64\\Debug\\00008085_wgi.zip";
            image.ImageData     = null;
            image.MaxPixelValue = 65535;
            image.MSecs         = 8085;
            image.TimeStamp     = DateTime.Now;
            m_vm.images.Add(image);

            image = new ExperimentImageContainer();
            image.CompressionAlgorithm  = COMPRESSION_ALGORITHM.GZIP;
            image.ExperimentImageID     = 3;
            image.ExperimentIndicatorID = 3;
            image.FilePath      = "C:\\Users\\bryan\\Documents\\Visual Studio 2015\\Projects\\Test\\Test\\bin\\x64\\Debug\\00009084_wgi.zip";
            image.ImageData     = null;
            image.MaxPixelValue = 65535;
            image.MSecs         = 9084;
            image.TimeStamp     = DateTime.Now;
            m_vm.images.Add(image);

            return(true);
#else
            bool success = true;
            if (m_db.GetAllExperimentImagesForExperimentIndicator(experimentIndicatorID))
            {
                m_vm.images = m_db.m_expImageList;
            }
            else
            {
                success = false;
            }

            return(success);
#endif
        }
Ejemplo n.º 2
0
        public bool GetImages(int experimentIndicatorID)
        {
            bool success = true;

            if (m_db.GetAllExperimentImagesForExperimentIndicator(experimentIndicatorID))
            {
                m_vm.images = m_db.m_expImageList;
            }
            else
            {
                success = false;
            }

            return(success);
        }