예제 #1
0
        /// <summary>
        ///     Creates sample data.
        /// </summary>
        private void CreateInitialData()
        {
            root_ = new Node_Base("Root");

            Node_Base source = new Node_Group("Source")
            {
                Index = 0
            };

            for (int i = 0; i < 4; i++)
            {
                source.Children.Add(new Node_Cell(GetNewCellName()));
            }

            root_.Children.Add(source);

            Node_Base destination = new Node_Group("Destination")
            {
                Index = 1
            };

            for (int i = 0; i < 4; i++)
            {
                destination.Children.Add(new Node_Cell(GetNewCellName()));
            }
            root_.Children.Add(destination);

            root_.UpdateIndexes();
        }
예제 #2
0
        /// <summary>
        ///     Creates sample data.
        /// </summary>
        private void CreateInitialData()
        {
            root_ = new Node_Base("Root");

            Node_Base source = new Node_Group("Source")
            {
                Index = 0
            };

            root_.Children.Add(source);
            root_.Children.Add(new Node_Group("Destination")
            {
                Index = 1
            });

            source.Children.Add(new Node_Cell(GetNewCellName()));
            source.Children.Add(new Node_Cell(GetNewCellName()));
            source.Children.Add(new Node_Cell(GetNewCellName()));
            source.Children.Add(new Node_Cell(GetNewCellName()));
        }