Turno TurnoAsignadoDeMicrofono(Microfono mic)
 {
     var turns = from t in _cola
                 where t.Mic == mic
                 select t;
     return turns.Single();
 }
 bool MicrofonoEstaFreeActivo(Microfono mic)
 {
     var mics = from m in _activeFreeMics
                 where m == mic
                 select m;
     return mics.ToList().Count != 0;
 }
 private void MostrarControlTiempo(Microfono mic)
 {
     _view.MostrarControlTiempo(mic);
 }
 bool MicrofonoEstaEnCola(Microfono mic)
 {
     var turns = from t in _cola
                 where t.Mic == mic
                 select t;
     return turns.ToList().Count != 0;
 }
 public void AgregarMicrofono(Microfono mic)
 {
     _microfonos.Add(mic);
 }
 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();
     }
 }
 public void ActualizarTagDelMicrofono(Microfono mic)
 {
     mic.Tag.Content = LeerNombreTagMicrofonoNum(mic.Number);
 }
 /// <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);
 }