Exemplo n.º 1
0
        /// <summary>
        /// Button click events
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAddAssessment_Click(object sender, EventArgs e)
        {
            try
            {
                if (patient == null || patient.PatientId == 0)
                {
                    throw new Exception("Invalid patient");
                }

                RangeOfMotion rangeOfMotion = new RangeOfMotion(this, true, 0, patient.PatientId);
                rangeOfMotion.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 2
0
        private void btnViewAssessment_Click(object sender, EventArgs e)
        {
            try
            {
                if (patient == null || patient.PatientId == 0)
                {
                    throw new Exception("Invalid patient");
                }

                if (selectedAssessmentId == 0)
                {
                    throw new Exception("Select assessment to view");
                }

                RangeOfMotion rangeOfMotion = new RangeOfMotion(this, false, selectedAssessmentId, patient.PatientId);
                rangeOfMotion.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Click button trigger events
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAddAssesment_Click(object sender, EventArgs e)
        {
            RangeOfMotion app = new RangeOfMotion(this);

            app.ShowDialog();
        }