public RibbonAspectVMbase(RibbonViewModel aRibbonVM) { myRibbonVM_ = aRibbonVM; myRibbon_ = myRibbonVM_.TheRibbon; }
public RibbonViewModel(ribbonBase newRibbon) : base(null) { theRibbon_ = newRibbon; if (null != theRibbon_.Widths) { if (theRibbon_.Widths.SegmentCount > 0) WidthsVM = new ProfileVPI_VM(theRibbon_.Widths); } if (null != theRibbon_.CrossSlopes) { if (theRibbon_.CrossSlopes.SegmentCount > 0) CrossSlopesVM = new ProfileVPI_VM(theRibbon_.CrossSlopes); } }