示例#1
0
 private void SetForExpansionKrystal(ExpansionKrystalBase xk)
 {
     this.Controls.Remove(LineStrandLabel);
     ExpansionTreeView expansionTreeView = new ExpansionTreeView(StrandsTreeView, xk.StrandNodeList(),
         xk.DensityInputKrystal.Level,
         xk.PointsInputKrystal.MissingAbsoluteValues);
     expansionTreeView.DisplayStrands(xk.Strands);
     StrandsTreeView.ExpandAll();
     this.Height = Screen.GetWorkingArea(this).Height;
 }
示例#2
0
        private void SetForShapedExpansionKrystal(ShapedExpansionKrystal sk)
        {
            MissingValues.Text = "Missing Values:  " + _krystal.MissingValues;
            Shape.Text = "Shape:  " + _krystal.Shape;

            StrandsTreeView.Nodes.Clear();
            ExpansionTreeView expansionTreeView = new ExpansionTreeView(StrandsTreeView, sk.StrandNodeList(),
                sk.DensityInputKrystal.Level,
                sk.PointsInputKrystal.MissingAbsoluteValues);
            expansionTreeView.DisplayStrands(sk.Strands);
            StrandsTreeView.ExpandAll();
        }
示例#3
0
        /// <summary>
        /// Sets the tree view, showing the output krystal's strands if they exist.
        /// </summary>
        private void SetTreeView()
        {
            if (_strandNodeList != null)
                _strandNodeList.Clear();
            if (_expansionTreeView != null)
                _expansionTreeView.Clear();
            if (_outputKrystal != null
                && _outputKrystal.DensityInputKrystal != null
                && _outputKrystal.PointsInputKrystal != null)
            {
                _strandNodeList = _outputKrystal.StrandNodeList();
                _painter.StrandNodeList = _strandNodeList;

                _outputKrystal.Level = _outputKrystal.DensityInputKrystal.Level + 1;

                _expansionTreeView = new ExpansionTreeView(TreeView, _strandNodeList,
                    _outputKrystal.DensityInputKrystal.Level,
                    _outputKrystal.PointsInputKrystal.MissingAbsoluteValues);
            }
        }