refactor: 将Framework库和RT、UI放在同一个解决方案中。
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel.Params
|
||||
{
|
||||
public class DoubleParam : NumParamBase<double>
|
||||
{
|
||||
#region Variables
|
||||
|
||||
private int _resolution;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public DoubleParam()
|
||||
{
|
||||
Placeholder = "*";
|
||||
}
|
||||
|
||||
public DoubleParam(double initValue) : base(initValue)
|
||||
{
|
||||
Placeholder = "*";
|
||||
}
|
||||
|
||||
public DoubleParam(double initValue, string placeholder) : base(initValue)
|
||||
{
|
||||
Placeholder = placeholder;
|
||||
}
|
||||
|
||||
public DoubleParam(double initValue, double minimum, double maximum) : base(initValue, minimum, maximum)
|
||||
{
|
||||
Placeholder = "*";
|
||||
}
|
||||
|
||||
public DoubleParam(double initValue, double minimum, double maximum, string placeholder) : base(initValue, minimum, maximum)
|
||||
{
|
||||
Placeholder = placeholder;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 返回当Value不可用时的占位符。
|
||||
/// </summary>
|
||||
public string Placeholder { get; }
|
||||
|
||||
public int Resolution
|
||||
{
|
||||
get => _resolution;
|
||||
set => Set(ref _resolution, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user