Пример #1
0
 void btnComunicacion_Click(object sender, EventArgs e)
 {
     BuscarForm g = new BuscarForm();
     g.ShowDialog();
 }
 void ShowFormBuscar()
 {
     BuscarForm buscarForm = new BuscarForm();
     buscarForm.Aulas = aulas;
     DialogResult result = buscarForm.ShowDialog();
     if (result == DialogResult.OK)
     {
         if (buscarForm.AulasSeleccionadas != null)
         {
             if (buscarForm.AulasSeleccionadas.Count > 0)
             {
                 calendarControl.calendarView.DisplayedOwners.Clear();
                 foreach (Aula a in buscarForm.AulasSeleccionadas)
                 {
                     calendarControl.calendarView.DisplayedOwners.Add(a.Referencia);
                 }
             }
         }
     }
 }