Esempio n. 1
0
    public static void AddExtraTime(BackUp obj)
    {
        switch (obj.Mode)
        {
        case 0:
            obj.AddWeeks(obj.ModeValue);
            break;

        case 1:
            obj.AddDays(obj.ModeValue);
            break;

        case 2:
            obj.AddHours(obj.ModeValue);
            break;

        case 3:
            obj.AddMinutes(obj.ModeValue);
            break;

        case 4:
            obj.AddSeconds(obj.ModeValue);
            break;

        case 5:
            obj.AddSeconds(0);
            break;
        }
    }