/// <summary> /// This is for listing Promoted Graph Parameters /// And is used in GraphParameterEditor /// </summary> /// <param name="title"></param> /// <param name="id"></param> /// <param name="v"></param> /// <param name="ignore"></param> public ParameterView(string title, string id, GraphParameterValue v, params string[] ignore) { InitializeComponent(); Param = v; IsReadOnly = true; Params.Set(v, ignore, false, true); Id = id; ParamName.Placeholder = "Parameter Name"; ParamName.Set(title); DisplayDefaultParam(); Collapse(); }
/// <summary> /// This is for listing Promoted Graph Parameters /// And is used in GraphParameterEditor /// </summary> /// <param name="title"></param> /// <param name="id"></param> /// <param name="v"></param> /// <param name="ignore"></param> public ParameterView(string title, string id, GraphParameterValue v, params string[] ignore) { InitializeComponent(); Param = v; IsReadOnly = true; Params.Set(v, ignore, false, true); Id = id; ParamName.Placeholder = Properties.Resources.TITLE_PARAMETER_NAME; ParamName.Set(title); DisplayDefaultParam(); Collapse(); }
private void InitNameField() { if (Param == null) { return; } var prop = Param.GetType().GetProperty("Name"); if (prop == null) { return; } ParamName.Placeholder = "Parameter Name"; ParamName.Set(prop, Param, IsReadOnly); }
private void InitNameField() { if (Param == null) { return; } var prop = Param.GetType().GetProperty("Name"); if (prop == null) { return; } ParamName.Placeholder = Properties.Resources.TITLE_PARAMETER_NAME; ParamName.Set(prop, Param, IsReadOnly); }