//根据事件重置标记位 public void ResetByTime(int type, int hour) { Logger.Info("ResetByTime type={0} hour={1}", type, hour); switch (type) { case 0: { var a = DateTime.Now.Ticks; List <int> tempList; if (DaysHour.TryGetValue(hour, out tempList)) { foreach (var i in tempList) { Reset(i); } } var b = DateTime.Now.Ticks; var c = b - a; } break; case 1: { List <int> tempList; if (WeekHour.TryGetValue(hour, out tempList)) { foreach (var i in tempList) { Reset(i); } } } break; case 2: { List <int> tempList; if (MonthHour.TryGetValue(hour, out tempList)) { foreach (var i in tempList) { Reset(i); } } } break; } }
public void EliminarHora(DaysHour daysHour) { switch (daysHour) { case DaysHour.Lunes: txtLunes.Text = string.Empty; break; case DaysHour.Martes: txtMartes.Text = string.Empty; break; case DaysHour.Miercoles: txtMiercoles.Text = string.Empty; break; case DaysHour.Jueves: txtJueves.Text = string.Empty; break; case DaysHour.Viernes: txtViernes.Text = string.Empty; break; case DaysHour.Sabado: txtSabado.Text = string.Empty; break; case DaysHour.Domingo: txtDomingo.Text = string.Empty; break; default: break; } }
public void AgregarHora(DaysHour daysHour, string horario) { switch (daysHour) { case DaysHour.Lunes: txtLunes.Text = horario; break; case DaysHour.Martes: txtMartes.Text = horario; break; case DaysHour.Miercoles: txtMiercoles.Text = horario; break; case DaysHour.Jueves: txtJueves.Text = horario; break; case DaysHour.Viernes: txtViernes.Text = horario; break; case DaysHour.Sabado: txtSabado.Text = horario; break; case DaysHour.Domingo: txtDomingo.Text = horario; break; default: break; } }
public Dias(string N, DaysHour I) { NombreDia = N; IdDia = I; }