public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var day = (Day)value; var result = FreeDay.IsFreeOrWeekendDay(day); return(result); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var day = (Day)value; if (FreeDay.IsFree(day)) { return(holiday); } if (FreeDay.IsWeekend(day)) { return(weekend); } return(task); }
public static void deleteFreeDay(String ID, String remover_id) { FreeDay.deleteFreeDay(ID, remover_id); }
public static List <Dictionary <String, String> > insertFreeDayAlsoBlocks(String fullName, String StartAt, String EndAt, String Comment) { return(FreeDay.insertFreeDayAlsoBlocks(fullName, Convert.ToDateTime(StartAt), Convert.ToDateTime(EndAt), Comment)); }
public static List <Dictionary <String, String> > getAllFreeDays() { return(FreeDay.getAllFreeDays()); }
public static void addFreeDay(String _id, DateTime startDate, DateTime endDate, String Comment) { FreeDay freeDay = new FreeDay(_id, startDate, endDate, Comment); freeDay.addFreeDayToDB(); }
public static List <Dictionary <String, String> > updateFreeDays(String ID, String StartAt, String EndAt, String Comment) { return(FreeDay.updateFreeDays(ID, Convert.ToDateTime(StartAt), Convert.ToDateTime(EndAt), Comment)); }