Ejemplo n.º 1
0
        private void dgrd_ShowVisits_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int VisitID = Convert.ToInt32(dgrd_ShowVisits.SelectedRows[0].Cells["id"].Value.ToString());

            if (reservasionObj.GetReservationByVisitID(VisitID) != null)
            {
                FrmAddNewReservasion frm = new FrmAddNewReservasion(reservasionObj.GetReservationByVisitID(VisitID));
                frm.FormClosed += AddresrvationClosed;
                frm.ShowDialog();
            }
        }
Ejemplo n.º 2
0
 private void btn_AddNewService_Click(object sender, EventArgs e)
 {
     if (dgrd_SearchResults.SelectedRows.Count != 0)
     {
         int PatientID = Convert.ToInt32(dgrd_SearchResults.SelectedRows[0].Cells["clm_Code"].Value.ToString());
         FrmAddNewReservasion frm = new FrmAddNewReservasion(PatientID);
         frm.ShowDialog();
     }
     else
         MessageBox.Show("");
 }
Ejemplo n.º 3
0
 private void btn_AddNewService_Click(object sender, EventArgs e)
 {
     if (dgrd_SearchResults.SelectedRows.Count != 0)
     {
         int PatientID            = Convert.ToInt32(dgrd_SearchResults.SelectedRows[0].Cells["clm_Code"].Value.ToString());
         FrmAddNewReservasion frm = new FrmAddNewReservasion(PatientID);
         frm.ShowDialog();
     }
     else
     {
         MessageBox.Show("");
     }
 }
        private void dgrd_ShowVisits_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int VisitID = Convert.ToInt32(dgrd_ShowVisits.SelectedRows[0].Cells["id"].Value.ToString());
            if (reservasionObj.GetReservationByVisitID(VisitID) != null)
            {
                FrmAddNewReservasion frm = new FrmAddNewReservasion(reservasionObj.GetReservationByVisitID(VisitID));
                frm.FormClosed += AddresrvationClosed;
                frm.ShowDialog();


            }

        }