示例#1
0
 /// <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();
 }
示例#2
0
 /// <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();
 }
示例#3
0
        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);
        }
示例#4
0
        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);
        }