This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,9 @@
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
{
public class SettingsCheckBox : SettingsControlBase
{
public bool IsSelected { get; set; }
public int StringResourcesID { get; set; }
}
}

View file

@ -0,0 +1,15 @@
using System.Collections.Generic;
using System.Web.Mvc;
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
{
public class SettingsCheckBoxGroup : SettingsControlBase
{
public SettingsCheckBoxGroup()
{
Options = new List<SelectListItem>();
}
public List<SelectListItem> Options { get; set; }
}
}

View file

@ -0,0 +1,7 @@
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
{
public abstract class SettingsControlBase
{
public string Id { get; set; }
}
}

View file

@ -0,0 +1,13 @@
using System;
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
{
public class SettingsDatePicker : SettingsControlBase
{
public DateTime? Date { get; set; }
[Newtonsoft.Json.JsonIgnore]
public DateTime? Min { get; set; }
[Newtonsoft.Json.JsonIgnore]
public DateTime? Max { get; set; }
}
}

View file

@ -0,0 +1,15 @@
using System.Collections.Generic;
using System.Web.Mvc;
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
{
public class SettingsDropDownList : SettingsControlBase
{
public SettingsDropDownList()
{
Options = new List<SelectListItem>();
}
public List<SelectListItem> Options { get; set; }
}
}

View file

@ -0,0 +1,15 @@
using System.Collections.Generic;
using System.Web.Mvc;
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
{
public class SettingsMultiSelect : SettingsControlBase
{
public SettingsMultiSelect()
{
Options = new List<SelectListItem>();
}
public List<SelectListItem> Options { get; set; }
}
}

View file

@ -0,0 +1,7 @@
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
{
public class SettingsNumericTextBox : SettingsControlBase
{
public double Value { get; set; }
}
}

View file

@ -0,0 +1,15 @@
using System.Collections.Generic;
using System.Web.Mvc;
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
{
public class SettingsRadioButtonGroup : SettingsControlBase
{
public SettingsRadioButtonGroup()
{
Options = new List<SelectListItem>();
}
public List<SelectListItem> Options { get; set; }
}
}

View file

@ -0,0 +1,7 @@
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
{
public class SettingsSwitchButton : SettingsControlBase
{
public bool Value { get; set; }
}
}

View file

@ -0,0 +1,9 @@
using System;
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
{
public class SettingsTimePicker : SettingsControlBase
{
public TimeSpan Time { get; set; }
}
}