public PartsSystemDrawing(Dictionary <string, List <MeasureSegmentController> > measuresToAdd, List <string> partIDs, LayoutSystemInfo layoutInfo) { _attributesLayout = ViewModel.ViewModelLocator.Instance.Main.CurrentLayout.LayoutStyle.MeasureStyle; _systemLayout = layoutInfo; _partIDsList = partIDs; _partWidth = measuresToAdd.FirstOrDefault(x => x.Key == measuresToAdd.Keys.FirstOrDefault()).Value.Sum(x => x.MinimalWidthWithAttributes); PartsSegmentsDraw(measuresToAdd, layoutInfo); }
public PartsSystemDrawing(int systemIndex, List <string> measuresToDraw, List <string> partsIdList, Dictionary <string, PartProperties> partsProperties, int pageIndex) { this._systemIndex = systemIndex; _measuresList = measuresToDraw; _partIDsList = partsIdList; _partWidth = _measuresList.CalculateWidth(_partIDsList[0]); _partsPropertiesList = partsProperties; this._pageIndex = pageIndex; _attributesLayout = ViewModel.ViewModelLocator.Instance.Main.CurrentLayout.LayoutStyle.MeasureStyle; GetSetSystemMargins(); PartsSegmentsDraw(); }