public NewLabolatoryExaminationcs(int IDP, string IDV, int procedure1, int idexamination) // procedure = 2 -> edytuj, procedure = 1 -> nowe
        {
            InitializeComponent();

            IDVis     = IDV;
            idpat     = IDP;
            procedure = procedure1;

            PatientsSearchCriteria searchCriteria = new PatientsSearchCriteria();

            searchCriteria.setPatientId(IDP);

            var res = SQLDoc.GetPatient(searchCriteria);

            foreach (var order in res)
            {
                textBox1.Text = order.patientTable.Name;
                textBox2.Text = order.patientTable.Surname;
                textBox3.Text = order.patientTable.PESEL;
            }

            if (idexamination != -1)
            {
                textBox10.Text = idexamination.ToString();;

                ExaminationsSearchCriteria examinationSearchCriteria = new ExaminationsSearchCriteria();
                examinationSearchCriteria.setExaminationId(idexamination);
                var resExa = SQLDoc.GetLaboratoryExamination(examinationSearchCriteria);
                foreach (var order in resExa)
                {
                    comboBox1.Text = order.examDictionaryTable.Name;
                    textBox5.Text  = order.laboratoryExaminationTable.Comments_Doctor;
                }
            }

            var result = SQLDoc.GetLabolatoryExamination();

            foreach (var order in result)
            {
                comboBox1.Items.Add(order.Name);
            }
        }