/// <summary> /// [Português] /// Construtor da classe. /// <para></para> /// [English] /// Class builder. /// </summary> /// <param name="pe"> PosturalEvaluation </param> public PatientReport(PosturalEvaluation pe) { PosturalEvaluation = pe; _angles = Analysis.CalculateAngles(pe.ViewsEvaluations[0].Points, pe.ViewsEvaluations[0].ViewType); }
/// <summary> /// [Português] /// Construtor da classe PosturalEvaluationReport. /// <para></para> /// [English] /// PosturalEvaluationReport class constructor. /// </summary> /// <param name="pe"> PosturalEvaluation </param> /// <param name="ve"> ViewEvaluation </param> public PosturalEvaluationReport(PosturalEvaluation pe, ViewEvaluation ve) { PosturalEvaluation = pe; ViewEvaluation = ve; _angles = Analysis.CalculateAngles(ve.Points, ve.ViewType); }
/// <summary> /// [Português] /// Método que cadastra um novo paciente no banco de dados. /// <para></para> /// [English] /// Method to register a new patient in the database. /// </summary> /// <param name="posturalEvaluation"> Objeto Paciente que será armazenado no /// banco de dados / Patient object that is stored in the database </param> /// <returns> /// True - Adicionado com sucesso / Successfully added /// <para></para> /// False - Ocorreu um erro / There was an error</returns> public Boolean Insert(PosturalEvaluation posturalEvaluation) { IObjectContainer database = null; try { database = Database.Instance.Open(); database.Store(posturalEvaluation); database.Commit(); return true; } catch (Exception erro) { database.Rollback(); throw new Exception(erro.Message); } }
/// <summary> /// [Português] /// Construtor da classe FrmCapturePic. /// <para></para> /// [English] /// FrmCapturePic class constructor. /// </summary> /// <param name="postura"> Imagem da Postura / Image of Posture </param> /// <param name="titulo"> Titulo do Formulario / Title of the Form</param> /// <param name="viewtype"> Tipo da postura avaliada / Type of posture evaluated </param> /// <param name="nomePaciente"> Nome do paciente / Name of the Pacient </param> /// <param name="idade"> Idade do paciente / Age of the Pacient</param> public FrmCapturePic(Patient patient) { InitializeComponent(); _patient = patient; _viewType = ViewType.Anterior; _posturalEvaluation = new PosturalEvaluation(); _posturalEvaluation.Patient = _patient; FormSetup(); }