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; } }
public ExamListPage(MainWindow mnWindow, ExamType type) { InitializeComponent(); AppWindow = mnWindow; Type = type; if(FillGrid(type)) FileHandler = new FileAccessHandler(); }
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(); }
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); }; }
public bool UpdateDB(FileAccessHandler.SaveAttributes saveAtts) { return ImageDataAccess.Insert(FilePath, ExamID, TechInitials, ImageID, saveAtts); }