Esempio n. 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);
        }
Esempio n. 2
0
 private void FormSurface_Loaded(object sender, RoutedEventArgs e)
 {
     m_formSurfaceViewModel = DataContext as IFormSurfaceViewModel;
 }