Ejemplo n.º 1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var day    = (Day)value;
            var result = FreeDay.IsFreeOrWeekendDay(day);

            return(result);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public static void deleteFreeDay(String ID, String remover_id)
 {
     FreeDay.deleteFreeDay(ID, remover_id);
 }
Ejemplo n.º 4
0
 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));
 }
Ejemplo n.º 5
0
 public static List <Dictionary <String, String> > getAllFreeDays()
 {
     return(FreeDay.getAllFreeDays());
 }
Ejemplo n.º 6
0
    public static void addFreeDay(String _id, DateTime startDate, DateTime endDate, String Comment)
    {
        FreeDay freeDay = new FreeDay(_id, startDate, endDate, Comment);

        freeDay.addFreeDayToDB();
    }
Ejemplo n.º 7
0
 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));
 }