Пример #1
0
 Turno TurnoAsignadoDeMicrofono(Microfono mic)
 {
     var turns = from t in _cola
                 where t.Mic == mic
                 select t;
     return turns.Single();
 }
Пример #2
0
 bool MicrofonoEstaFreeActivo(Microfono mic)
 {
     var mics = from m in _activeFreeMics
                 where m == mic
                 select m;
     return mics.ToList().Count != 0;
 }
Пример #3
0
 private void MostrarControlTiempo(Microfono mic)
 {
     _view.MostrarControlTiempo(mic);
 }
Пример #4
0
 bool MicrofonoEstaEnCola(Microfono mic)
 {
     var turns = from t in _cola
                 where t.Mic == mic
                 select t;
     return turns.ToList().Count != 0;
 }
Пример #5
0
 public void AgregarMicrofono(Microfono mic)
 {
     _microfonos.Add(mic);
 }
Пример #6
0
 public void AgregarACola(double selectedTime, Microfono mic)
 {
     long time = (long)(selectedTime * 60);
     Turno turno = new Turno { Time = time, TotalTime = time, Mic = mic };
     _cola.Enqueue(turno);
     _view.ActualizarBotonesMicrofonos();
     if (!_timer.IsEnabled)
     {
         ConectarseAServidor();
         _timer.Start();
     }
 }
Пример #7
0
 public void ActualizarTagDelMicrofono(Microfono mic)
 {
     mic.Tag.Content = LeerNombreTagMicrofonoNum(mic.Number);
 }
Пример #8
0
 /// <summary>
 /// Muestra el control de Time Picker para el microfono seleccionado
 /// </summary>
 /// <param name="mic">El microfono al que se le desea asignar un tiempo como turno</param>
 public void MostrarControlTiempo(Microfono mic)
 {
     TimePicker tmpick = new TimePicker() { Mic = mic };
     tmpick.Confirm += new EventHandler<TimePickerEventArgs>(TimeConfirmed);
     tmpick.Close += new EventHandler(TimeClosed);
     CleanMain();
     RemoverBotonesLateralesPrincipales();
     grdMain.Children.Add(tmpick);
     tmpick.Margin = new Thickness(39, 21.765, 38, 0);
     Grid.SetRow(tmpick, 0);
     Grid.SetColumn(tmpick, 1);
 }