public void DeleteDayHour(int Week, int Day, Day.type TypeChoice) { String Type = TypeChoice.ToString(); if (Type == "REGULAR") { WeekAndDay[Week, Day].RegHours = 0; } else if (Type == "SICK") { WeekAndDay[Week, Day].SickHours = 0; } else if (Type == "VACATION") { WeekAndDay[Week, Day].VacHours = 0; } FillHours(); }
public void EditDayHours(int Week, int Day, Day.type TypeChoice, float Hours) { String Type = TypeChoice.ToString(); if (Type == "REGULAR") { WeekAndDay[Week, Day].RegHours = 0; } else if (Type == "SICK") { WeekAndDay[Week, Day].SickHours = 0; } else if (Type == "VACATION") { WeekAndDay[Week, Day].VacHours = 0; } WeekAndDay[Week, Day].SetHours(TypeChoice, Hours); FillHours(); }