/// <summary>
 /// Constructor
 /// </summary>
 public RestActionPage()
 {
     InitializeComponent();
     ShowResponse(null);
     _viewModel = DataContext as RestActionViewModel;
     _viewModel.SyncContext = SynchronizationContext.Current;
     _viewModel.PropertyChanged += OnViewModelPropertyChanged;
 }
        /// <summary>
        /// Constructor
        /// </summary>
        public MainPage()
        {
            InitializeComponent();
            _viewModel = DataContext as RestActionViewModel;
            _viewModel.PropertyChanged += OnViewModelPropertyChanged;
            _viewModel.SyncContext = SynchronizationContext.Current;
            _buttons = new Button[] { btnSwitch, btnVersions, btnResources, btnDescribeGlobal, btnDescribe, btnMetadata, btnCreate, btnRetrieve, btnUpdate, btnUpsert, btnDelete, btnQuery, btnSearch, btnManual, btnLogout };

            foreach (Button button in _buttons)
            {
                button.Click += OnAnyButtonClicked;
            }

            SwitchToRestAction(RestAction.VERSIONS);
        }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="vm"></param>
 public SendRequestCommand(RestActionViewModel vm)
 {
     _vm = vm;
 }
Beispiel #4
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="vm"></param>
 public SendRequestCommand(RestActionViewModel vm)
 {
     _vm = vm;
 }