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; }
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; }
public MainWindow() { InitializeComponent(); _viewModel = new MainWindowViewModel(); _viewModel.RequestLoadTool += _viewModel_RequestLoadTool; _canvasService = _viewModel.CanvasService; _canvasService.RequestGLInvalidate += GLContext_RequestGLInvalidate; DataContext = _viewModel; }