using System; using System.Collections.Generic; namespace EGFramework { public struct EGSelectParam { public int SelectID { set; get; } public Dictionary SelectList { set; get; } public EGSelectParam(int selectID, Dictionary selectList) { SelectID = selectID; SelectList = selectList; } } public struct EGRangeParam { public double Min { set; get; } public double Max { set; get; } public double Step { set; get; } public double Value { set; get; } public EGRangeParam(double min, double max, double step, double value) { Min = min; Max = max; Step = step; Value = value; } } public struct EGPathSelect { public string Path { set; get; } public bool IsDir { set; get; } public override string ToString() { return Path; } public EGPathSelect() { Path = ""; IsDir = false; } public EGPathSelect(string path) { this.Path = path; this.IsDir = false; } public EGPathSelect(string path, bool isDir) { this.Path = path; this.IsDir = isDir; } } public interface IEGReadOnlyString { public string GetString(); } public struct EGReadOnlyString : IEGReadOnlyString { public string Value { get; private set; } public EGReadOnlyString(string value) { Value = value; } public string GetString() { return Value; } } }