Beispiel #1
0
        public void SetStomatognathicTest()
        {
            foreach (var control in panel6.Controls)
            {
                var ctrl   = (StomatognathicRow)control;
                var stTemp = StomatognathicTest;
                ctrl.SetValues(ref stTemp);
                StomatognathicTest = stTemp;
            }

            StomatognathicTest.Cat1Err    = checkBoxCat1Err.Checked;
            StomatognathicTest.Cat1ErrPos = textBoxCat1ErrPos.Text;
            GetRadioButtonValues(new RadioButton[] { radioButtonCat2PosR1, radioButtonCat2PosR2 });
            GetRadioButtonValues(new RadioButton[] { radioButtonCat2PosL1, radioButtonCat2PosL2 });

            textBoxIndicator.Text = StomatognathicTest.Inicator;

            GetRadioButtonValues(new RadioButton[] { radioButtonTlOkzi1, radioButtonTlOkzi2, radioButtonTlOkzi3 });
            GetRadioButtonValues(new RadioButton[] { radioButtonDoubleTlCat1, radioButtonDoubleTlCat2 });
            GetRadioButtonValues(new RadioButton[] { radioButtonDoubleTlOkz1, radioButtonDoubleTlOkz2 });

            StomatognathicTest.RuheschwebeR = textBoxRuheschwebeR.Text;
            StomatognathicTest.RuheschwebeL = textBoxRuheschwebeL.Text;
            StomatognathicTest.FesterR      = textBoxFesterR.Text;
            StomatognathicTest.FesterL      = textBoxFesterL.Text;
            StomatognathicTest.WeiteOffR    = textBoxWeiteOffR.Text;
            StomatognathicTest.WeiteOffL    = textBoxWeiteOffL.Text;
        }
Beispiel #2
0
 public StomatognathicRow(StomatognathicTest stomatognathic, string parameter, string description)
 {
     _stomatognathic = stomatognathic;
     _param          = parameter;
     InitializeComponent();
     labelText.Text = description;
 }
        public StomatognathicPalpationRow(StomatognathicTest stomatognathic, string parameter, string description)
        {
            _stomatognathic = stomatognathic;
            _param          = parameter;
            InitializeComponent();
            labelText.Text = description;

            comboBox1.Items.AddRange(new string[] { "Nulla", "Missempfinden", "Schmerz" });
            comboBox2.Items.AddRange(new string[] { "Nulla", "Missempfinden", "Schmerz" });
        }
Beispiel #4
0
        public Stomatognathic(Customer customer)
        {
            _customer = customer;
            using (var db = new Db.PhisioDB())
            {
                StomatognathicTest = db.StomatognathicTests.FirstOrDefault(ra => ra.CustomerId == customer.Id);
            }

            if (StomatognathicTest == null)
            {
                StomatognathicTest = new StomatognathicTest();
            }

            InitializeComponent();
        }
        public void SetValues(ref StomatognathicTest stomatognathic)
        {
            Type t = _stomatognathic.GetType();

            PropertyInfo[] props  = t.GetProperties();
            var            paramR = props.FirstOrDefault(p => p.Name == $"{_param}R" || p.Name == $"{_param}r");
            var            paramL = props.FirstOrDefault(p => p.Name == $"{_param}L" || p.Name == $"{_param}l");
            var            valR   = 0;
            var            valL   = 0;

            if (comboBox1.SelectedItem == comboBox1.Items[1])
            {
                valR = 1;
            }
            else if (comboBox1.SelectedItem == comboBox1.Items[2])
            {
                valR = 2;
            }
            else
            {
                valR = 3;
            }

            if (comboBox2.SelectedItem == comboBox2.Items[1])
            {
                valL = 1;
            }
            else if (comboBox2.SelectedItem == comboBox2.Items[2])
            {
                valL = 2;
            }
            else
            {
                valL = 3;
            }


            paramR.SetValue(stomatognathic, valR);
            paramL.SetValue(stomatognathic, valL);
        }
Beispiel #6
0
        public void SetValues(ref StomatognathicTest stomatognathic)
        {
            Type t = _stomatognathic.GetType();

            PropertyInfo[] props  = t.GetProperties();
            var            paramR = props.FirstOrDefault(p => p.Name == $"{_param}R" || p.Name == $"{_param}r");
            var            paramL = props.FirstOrDefault(p => p.Name == $"{_param}L" || p.Name == $"{_param}l");
            var            valR   = 0;
            var            valL   = 0;

            if (radioButtonR1.Checked)
            {
                valR = 1;
            }
            else if (radioButtonR2.Checked)
            {
                valR = 2;
            }
            else if (radioButtonR3.Checked)
            {
                valR = 3;
            }

            if (radioButtonL1.Checked)
            {
                valL = 1;
            }
            else if (radioButtonL2.Checked)
            {
                valL = 2;
            }
            else if (radioButtonL3.Checked)
            {
                valL = 3;
            }


            paramR.SetValue(stomatognathic, valR);
            paramL.SetValue(stomatognathic, valL);
        }