Example #1
0
 private void buttonX1_Click_1(object sender, EventArgs e)
 {
     //this.NotificacionPanel.Expanded = !this.NotificacionPanel.Expanded;
     NotificarForm form=new NotificarForm();
     form.controlNotificar1.Aula = (Aula)this.AulasBindingSource.Current;
     form.controlNotificar1.Usuario = this.user;
     form.StartPosition = FormStartPosition.CenterScreen;
     form.ShowDialog();
 }
 void calendarControl_OnNotificarClick(object sender, EventArgs e)
 {
     NotificarForm notificarForm = new NotificarForm();
     notificarForm.controlNotificar1.Aula = calendarControl.SelectedAula;
     DateTime? inicio=calendarControl.calendarView.DateSelectionStart.Value;
     DateTime? fin = calendarControl.calendarView.DateSelectionEnd;
     if (inicio != null)
     {
         notificarForm.controlNotificar1.Inicio = inicio.Value;
     }
     if (fin != null)
     {
         notificarForm.controlNotificar1.Fin = fin.Value;
     }
     notificarForm.controlNotificar1.Usuario = this.Usuario;
     notificarForm.ShowDialog();
 }