InkCanvasForClass/Ink Canvas/Settings.cs

50 lines
1.6 KiB
C#
Raw Normal View History

2021-09-12 18:28:26 +08:00
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ink_Canvas
{
public class Settings
{
[JsonProperty("behavior")]
public Behavior Behavior { get; set; } = new Behavior();
[JsonProperty("startup")]
public Startup Startup { get; set; } = new Startup();
[JsonProperty("appearance")]
public Appearance Appearance { get; set; } = new Appearance();
}
public class Behavior
{
[JsonProperty("powerPointSupport")]
public bool PowerPointSupport { get; set; } = true;
[JsonProperty("isShowCanvasAtNewSlideShow")]
public bool IsShowCanvasAtNewSlideShow { get; set; } = true;
}
public class Startup
{
[JsonProperty("isAutoHideCanvas")]
public bool IsAutoHideCanvas { get; set; } = false;
[JsonProperty("isAutoEnterModeFinger")]
public bool IsAutoEnterModeFinger { get; set; } = false;
}
public class Appearance
{
[JsonProperty("isShowExitButton")]
public bool IsShowExitButton { get; set; } = true;
[JsonProperty("isShowEraserButton")]
public bool IsShowEraserButton { get; set; } = true;
[JsonProperty("isShowHideControlButton")]
public bool IsShowHideControlButton { get; set; } = true;
[JsonProperty("isShowLRSwitchButton")]
public bool IsShowLRSwitchButton { get; set; } = true;
[JsonProperty("isShowModeFingerToggleSwitch")]
2021-09-12 18:28:26 +08:00
public bool IsShowModeFingerToggleSwitch { get; set; } = true;
}
}