Пример #1
0
 public ParameterInfo(Parameter param)
 {
     this.Name = param.Name;
     this.Aliasing = param.Aliasing;
     this.Protocols = new List<string>(param.Protocols);
 }
Пример #2
0
 public Parameter ToParameter(Definitions.Description.Message message)
 {
     Parameter p = new Parameter(message);
     p.Aliasing = this.Aliasing;
     p.Name = this.Name;
     foreach(string prot in this.Protocols)
         p.Protocols.Add(prot);
     return p;
 }
Пример #3
0
 private void SetParameterAliasing(Parameter.AliasingEnum aliasing)
 {
     if (this.listParameters.SelectedItems.Count != 1)
         return;
     ListViewItem lvi = this.listParameters.SelectedItems[0];
     ParameterInfo pi = (ParameterInfo)lvi.Tag;
     pi.Aliasing = aliasing;
     lvi.SubItems[1].Text = String.Format("{0}", aliasing);
     this.MarkDirty();
 }