コード例 #1
0
ファイル: MethodEditor.cs プロジェクト: Infarch/MyPerlModules
        private void btnAddMethodParam_Click(object sender, EventArgs e)
        {
            if (ValidateParam())
            {
                Parameter param = new Parameter()
                {
                    Name = tbMethodParamName.Text,
                    Type=(Class)cbMethodParamType.SelectedValue
                };
                listParams.Add(param);

                cbMethodParamType.SelectedIndex = 0;
                tbMethodParamName.Text = String.Empty;
            }
        }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ParameterSet EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToParameterSet(Parameter parameter)
 {
     base.AddObject("ParameterSet", parameter);
 }
コード例 #3
0
 /// <summary>
 /// Create a new Parameter object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="methodId">Initial value of the MethodId property.</param>
 /// <param name="classId">Initial value of the ClassId property.</param>
 /// <param name="orderNmber">Initial value of the OrderNmber property.</param>
 public static Parameter CreateParameter(global::System.Int32 id, global::System.String name, global::System.Int32 methodId, global::System.Int32 classId, global::System.Byte orderNmber)
 {
     Parameter parameter = new Parameter();
     parameter.Id = id;
     parameter.Name = name;
     parameter.MethodId = methodId;
     parameter.ClassId = classId;
     parameter.OrderNmber = orderNmber;
     return parameter;
 }