You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.7 KiB
71 lines
1.7 KiB
using System; |
|
using System.Collections.Generic; |
|
|
|
namespace EGFramework |
|
{ |
|
public struct EGSelectParam |
|
{ |
|
public int SelectID { set; get; } |
|
|
|
public Dictionary<int, string> SelectList { set; get; } |
|
public EGSelectParam(int selectID, Dictionary<int, string> 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; |
|
} |
|
} |
|
} |