public void Initialize() { ActivateBottomToUpNumberingCommand = new DelegateCommand(() => { AnnotationDirection = AnnotationDirection.BottomToUp; }); ActivateUpToBottomNumberingCommand = new DelegateCommand(() => { AnnotationDirection = AnnotationDirection.UpToBottom; }); if (planeColumnSettingsVM == null) { planeColumnSettingsVM = new ColumnSettingsVM(LayersTemplateSource, LayerRankNameSource, ColumnSettingsPersistence); } }
protected ProjectVM(SerializationInfo info, StreamingContext context) { boreName = info.GetString("BoreName"); boreIntervalsVM = (BoreIntervalsVM)info.GetValue("Intervals", typeof(BoreIntervalsVM)); PlaneVM = (AnnotationPlane.PlaneVM)info.GetValue("Annotation", typeof(AnnotationPlane.PlaneVM)); layersTemplateSource = (ILayersTemplateSource)info.GetValue("LayersTemplateSource", typeof(ILayersTemplateSource)); layerRankNameSource = (ILayerRankNamesSource)info.GetValue("LayersRankSource", typeof(ILayerRankNamesSource)); columnSettingsPersistence = (IColumnSettingsPersistence)info.GetValue("ColumnValuePersistence", typeof(IColumnSettingsPersistence)); planeColumnSettingsVM = (ColumnSettingsVM)info.GetValue("ColumnsSettings", typeof(ColumnSettingsVM)); if (PlaneVM != null) { AnnotationDirection = PlaneVM.AnnotationDirection; } Initialize(); }