Пример #1
0
        public virtual void Initialize(IServiceContainer container)
        {
            Services.ICanvasService    canvasService    = container.CanvasService;
            Services.IDataModelService dataModelService = container.DataModelService;
            Services.ILicenseService   licenseService   = container.LicenseService;

            _licenseData = licenseService.LicenseData;
            _dataModel   = dataModelService.DataModel;
        }
Пример #2
0
        public override void Initialize(IServiceContainer container)
        {
            base.Initialize(container);

            _canvasService = container.CanvasService;
            _glDataContext = _canvasService.GLDataContext;
            _red           = _glDataContext.BackgroundColor.Red;
            _blue          = _glDataContext.BackgroundColor.Blue;
            _green         = _glDataContext.BackgroundColor.Green;
        }
Пример #3
0
        public MainWindow()
        {
            InitializeComponent();
            _viewModel = new MainWindowViewModel();
            _viewModel.RequestLoadTool         += _viewModel_RequestLoadTool;
            _canvasService                      = _viewModel.CanvasService;
            _canvasService.RequestGLInvalidate += GLContext_RequestGLInvalidate;

            DataContext = _viewModel;
        }