public PlanDesignerViewModel(PlansViewModel plansViewModel)
		{
			_plansViewModel = plansViewModel;
			DesignerCanvas = new PresenterCanvas();
			_flushAdorner = new FlushAdorner(DesignerCanvas);
			ServiceFactory.Events.GetEvent<UserChangedEvent>().Unsubscribe(OnUserChanged);
			ServiceFactory.Events.GetEvent<UserChangedEvent>().Subscribe(OnUserChanged);
		}
Example #2
0
		public PlanDesignerViewModel(PlansViewModel plansViewModel, LayoutPartPlansProperties properties)
		{
			_plansViewModel = plansViewModel;
			DesignerCanvas = new PresenterCanvas();
			_flushAdorner = new FlushAdorner(DesignerCanvas);
			ShowZoomSliders = properties.ShowZoomSliders;
			DeviceZoom = properties.DeviceZoom;
			AllowChangePlanZoom = properties.AllowChangePlanZoom;
		}