Ejemplo n.º 1
0
        private void изменитьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DateTime datedr = dateTiPi1.Value;
            String   str    = lblFIO.Text;
            String   heig   = lblHeightinProfile.Text;
            String   weig   = lblWeightinProfile.Text;

            words    = str.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
            wordsHei = heig.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
            wordsWei = weig.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
            // words[0] =="Иванов"
            // words[1] =="Иван"
            // words[2] =="Иванович"
            Hide();
            var FormAddPatient = new FormaddPatient();

            FormAddPatient.txtaddSurname.Text    = words[1];
            FormAddPatient.txtaddName.Text       = words[2];
            FormAddPatient.txtaddPatronymic.Text = words[3];
            FormAddPatient.txtHeight.Text        = wordsHei[1];
            FormAddPatient.txtWeight.Text        = wordsWei[1];
            FormAddPatient.addDOB1.Value         = datedr;
            FormAddPatient.Closed += (s, args) => Close();
            FormAddPatient.ShowDialog();
        }
Ejemplo n.º 2
0
        public void buttonAddPatient_Click(object sender, EventArgs e)
        {
            Hide();
            var FormAddPatient = new FormaddPatient();

            FormAddPatient.Closed += (s, args) => Close();
            FormAddPatient.ShowDialog();
        }
Ejemplo n.º 3
0
        private void создатьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Hide();
            var FormAddPatient = new FormaddPatient();

            FormAddPatient.Closed += (s, args) => Close();
            FormAddPatient.ShowDialog();
        }
Ejemplo n.º 4
0
        private void buttonBackinProfile_Click(object sender, EventArgs e)
        {
            DateTime datedr = dateTiPi1.Value;
            String   str    = lblFIO.Text;

            words = str.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
            Hide();
            var AddPatient = new FormaddPatient();

            AddPatient.txtaddSurname.Text    = words[1];
            AddPatient.txtaddName.Text       = words[2];
            AddPatient.txtaddPatronymic.Text = words[3];
            AddPatient.txtHeight.Text        = lblHeightinProfile.Text;
            AddPatient.txtWeight.Text        = lblWeightinProfile.Text;
            AddPatient.addDOB1.Value         = datedr;
            AddPatient.Closed += (s, args) => Close();
            AddPatient.ShowDialog();
        }