예제 #1
0
 public MainViewModel(
     ScanViewModel scanViewModel,
     ConnectedDevicesViewModel connectViewModel,
     ServerViewModel serverViewModel,
     TestCasesViewModel testCasesViewModel)
 {
     this.Scan             = scanViewModel;
     this.ConnectedDevices = connectViewModel;
     this.Server           = serverViewModel;
     this.TestCases        = testCasesViewModel;
 }
예제 #2
0
        public MainWindow()
        {
            InitializeComponent();

            var repository = new LocalDocumentRepository("Storage", new TestCaseMetadataParser());

            repository.Initialize();

            var vm = new TestCasesViewModel();

            vm.Initialize();

            DataContext = vm;
        }