Пример #1
0
 private void dgvIntervals_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     DataGridViewRow row = dgvIntervals.CurrentRow;
     ScheduleDTO lInterval = (ScheduleDTO)dgvIntervals.GetItem(row.Index);
     DateIntervalView ventana = new DateIntervalView();
     ventana.View(lInterval);
 }
Пример #2
0
        private void dgvIntervals_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow  row       = dgvIntervals.CurrentRow;
            ScheduleDTO      lInterval = (ScheduleDTO)dgvIntervals.GetItem(row.Index);
            DateIntervalView ventana   = new DateIntervalView();

            ventana.View(lInterval);
        }
 private void btnView_Click(object sender, EventArgs e)
 {
     try
     {
         DataGridViewRow row = dgvDateInterval.CurrentRow;
         this.dateInterval = dgvDateInterval.GetItem(row.Index);
         DateIntervalView ventana = new DateIntervalView();
         ventana.View(this.dateInterval);
     }
     catch (EntidadNulaException ex)
     {
         MessageBox.Show(ex.Message, "Entidad nula", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }