Пример #1
0
        private void btnShtoTermin_Click(object sender, EventArgs e)
        {
            FrmAddAppointment frmtermin = new FrmAddAppointment();

            frmtermin.Show();


            BLPacienti pacienti = new BLPacienti();
            //Objekti i klases pacienti
            //            Pacienti pacient = new Pacienti();
            //            pacient.PacientiID = Int32.Parse(txtPacienti.Text);
            //            pacient.Emri = txtEName.Text;
            //            pacient.Mbiemri = txtESurname.Text;
            //            pacient.NrLeternjoftimit = txtNrLeternjofitmit.Text;
            //            pacient.Telefoni = txtTel.Text;
            //            pacient.Email = txtEmail.Text;



            //            if (BLPacienti.UpdatePacient(pacient))
            //            {
            //                MessageBox.Show("U editua me sukses");
            //            }
            //            else
            //            {
            //                MessageBox.Show("Error");
            //            }

            //Thirret metoda per te edituar
        }
Пример #2
0
        private void btn_Add_Appointment_Click(object sender, EventArgs e)
        {
            FrmAddAppointment takimet = new FrmAddAppointment();

            takimet.Show();
        }