From 2b919134f31edac7823faf341d0c2541fa589a11 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Fri, 26 Dec 2014 00:03:47 -0500 Subject: [PATCH] Begin to implement ProjectTypeVariables --- .../ProjectTypeVariable.cs | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 CSharp/Plugins/UniversalEditor.Essential/ProjectTypeVariable.cs diff --git a/CSharp/Plugins/UniversalEditor.Essential/ProjectTypeVariable.cs b/CSharp/Plugins/UniversalEditor.Essential/ProjectTypeVariable.cs new file mode 100644 index 00000000..07d7c994 --- /dev/null +++ b/CSharp/Plugins/UniversalEditor.Essential/ProjectTypeVariable.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace UniversalEditor +{ + public enum ProjectTypeVariableType + { + Text, + Choice, + FileOpen, + FileSave + } + public class ProjectTypeVariable + { + + public class ProjectTypeVariableCollection + : System.Collections.ObjectModel.Collection + { + + } + + private string mvarName = String.Empty; + public string Name { get { return mvarName; } set { mvarName = value; } } + + private string mvarTitle = String.Empty; + public string Title { get { return mvarTitle; } set { mvarTitle = value; } } + + private ProjectTypeVariableType mvarType = ProjectTypeVariableType.Text; + public ProjectTypeVariableType Type { get { return mvarType; } set { mvarType = value; } } + + private object mvarDefaultValue = null; + public object DefaultValue { get { return mvarDefaultValue; } set { mvarDefaultValue = value; } } + + private Dictionary mvarValidValues = new Dictionary(); + public Dictionary ValidValues { get { return mvarValidValues; } } + + } +}