Ejemplo n.º 1
0
        public bool Insert(string filePath, int examID, string techIn, int imageID, FileAccessHandler.SaveAttributes saveAtts)
        {
            try
            {
                int techID;
                DataRow row = null;
                if ((techID = LookUpTechID(techIn)) > -1)
                {
                    row = DBUtil.DataSet.Tables["Image"].NewRow();
                    row["Name"] = saveAtts.FileName;
                    row["DateSaved"] = System.DateTime.Now.Date;
                    row["DcmImgLocation"] = filePath;
                    row["ExamID"] = examID;
                    row["TechID"] = techID;
                }

                DBUtil.DataSet.Tables["Image"].Rows.Add(row);
                return UpdateDB();
            }
            catch(Exception e)
            {
                Console.Out.WriteLine("There was an error: " + e.StackTrace);
                return false;
            }
        }
Ejemplo n.º 2
0
 public ExamListPage(MainWindow mnWindow, ExamType type)
 {
     InitializeComponent();
     AppWindow = mnWindow;
     Type = type;
     if(FillGrid(type))
         FileHandler = new FileAccessHandler();
 }
Ejemplo n.º 3
0
 public NMImage(FileAccessHandler.SaveAttributes saveAtts, int examID, string techIn)
 {
     FilePath = @"C:\\ImageData\\" + saveAtts.FileName + "_dcm.png";
     ExamID = examID;
     TechInitials = techIn;
     ImageDataAccess = new NMImageDA(this);
     //TODO: Uncomment when fix for creating a DICOM file is added
     //ImageDataAccess.SetDicomObject();
 }
Ejemplo n.º 4
0
 public ProcessingWindow(IExam exam, FileAccessHandler fileHandler, Template temp)
 {
     InitializeComponent();
     AddAnnotationStatus = false;
     Canvases = temp.Canvases;
     FileHandler = fileHandler;
     //CanvasFrame.Content = Canvases[0];
     Exam = exam;
     ExamTemplate = temp;
     AnnotationsHandler = new AnnotationHandler();
     SetAnnotations();
     ImageManHandler = new ImageManipulationHandler(BackgroundSlider, IntensitySlider, WindowValue, LevelValue, FrameSlider, FrameValue);
     MouseDown += (sender, e) => { CaptureAnnotationPoint(e); };
 }
Ejemplo n.º 5
0
 public bool UpdateDB(FileAccessHandler.SaveAttributes saveAtts)
 {
     return ImageDataAccess.Insert(FilePath, ExamID, TechInitials, ImageID, saveAtts);
 }