コード例 #1
0
        /// <summary>
        /// Adds the specified c.
        /// </summary>
        /// <param name="c">The c.</param>
        public void Add(NodeControlSettingsCollection c)
        {
            int MaxCount = c.Count;

            for (int Index = 0; Index < MaxCount; Index++)
            {
                string          text = c.GetKey(Index);
                ControlSettings data = c.GetValue(Index);

                this.Add(text, data);
                // this[text].IsModified = true;
            }
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeControlSettingsCollection"/> class.
 /// </summary>
 /// <param name="col">The col.</param>
 public NodeControlSettingsCollection(NodeControlSettingsCollection col)
 {
     this.Add(col);
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeControlSettingsCollection"/> class.
 /// </summary>
 /// <param name="capacity">The capacity.</param>
 /// <param name="col">The col.</param>
 public NodeControlSettingsCollection(int capacity, NodeControlSettingsCollection col)
 {
     this.Add(col);
 }
コード例 #4
0
ファイル: Node.cs プロジェクト: hdgardner/ECF
 /// <summary>
 /// Initializes a new instance of the <see cref="Node"/> class.
 /// </summary>
 public Node()
 {
     NodeUID  = Guid.NewGuid().ToString();
     Controls = new NodeControlSettingsCollection();
 }