示例#1
0
        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;
 }
示例#3
0
        public Toolbox()
        {
            InitializeComponent();

            m_toolboxViewModel = DataContext as IToolboxViewModel;
        }