|
using System;
using System.Collections.Generic;
using System.Text;
using DayPilot.Web.Ui.Enums.Calendar;
namespace DayPilot.Utils
{
internal class ViewTypeParser
{
internal static ViewTypeEnum Parse(string input)
{
switch (input.ToUpper())
{
case "DAY":
return ViewTypeEnum.Day;
case "DAYS":
return ViewTypeEnum.Days;
case "WEEK":
return ViewTypeEnum.Week;
case "WORKWEEK":
return ViewTypeEnum.WorkWeek;
default:
throw new ArgumentException("Unrecognized ViewTypeEnum value.");
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.