public CreateTestViewModel(ITestService testService, IToolboxViewModel toolboxViewModel, IFormSurfaceViewModel formSurfaceViewModel, IPropertiesViewModel propertiesViewModel, IPageService pageService) : base(pageService) { m_testService = testService; ToolboxViewModel = toolboxViewModel; FormSurfaceViewModel = formSurfaceViewModel; PropertiesViewModel = propertiesViewModel; ConfirmCommand = new DelegateCommand(Confirm); CancelCommand = new DelegateCommand(Cancel); }
public StandardToolboxView(IToolboxViewModel viewModel) { InitializeComponent(); this.DataContext = viewModel; }
public Toolbox() { InitializeComponent(); m_toolboxViewModel = DataContext as IToolboxViewModel; }