Пример #1
0
        public NewSphereView(NewSphereViewModel viewModel, ILoggerFacade logger)
            : base(viewModel, logger)
        {
            this.viewModel = viewModel;

            this.sphere = new Sphere();
            Children.Add(sphere);

            sphere.Bind(Sphere.RadiusProperty, () => viewModel.Radius);
            sphere.Bind(Sphere.CenterProperty, () => viewModel.Center);
            sphere.SetMaterials(GetDefaultFrontAndBackMaterials(viewModel));
        }
Пример #2
0
 public Editor(Point startPoint, LineRange startRay, NewSphereViewModel viewModel)
     : base(startPoint, startRay, viewModel)
 {
     this.viewModel = viewModel;
 }