using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; namespace Future.Contract { /// /// 自定义参数设置器接口,用于设置一个参数的设置器,是对象编辑器的一行 /// public interface IParameterSetter { /// /// 绑定要编辑的自定义参数对象,可重入;注意:每次调用此参数需要重新绑定设置器的视图 /// /// 要进行编辑的参数 void Binding(ParameterDefineAttribute parameter); /// /// 参数设置器对象,如果继承此接口的类不是UserControl类型的子类,则需要通过此方法返回编辑器视图对象 /// UserControl SetterView { get; } /// /// 保存设置 /// /// 如果设置失败则返回失败原因 string SaveConfig(); } }