示例#1
0
        public MainWindow()
        {
            InitializeComponent();
            RestTestService restTest = new RestTestService();

            DataContext = new MainViewModel(restTest);
        }
示例#2
0
 public MainViewModel(RestTestService restTestService)
 {
     restTest    = restTestService;
     GetCommand  = new DelegateCommand <string>(GetExecute);
     PostCommand = new DelegateCommand <string>(PostExecute);
 }