Exemple #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public RestActionPage()
 {
     InitializeComponent();
     ShowResponse(null);
     _viewModel                   = DataContext as RestActionViewModel;
     _viewModel.SyncContext       = SynchronizationContext.Current;
     _viewModel.PropertyChanged  += OnViewModelPropertyChanged;
     HardwareButtons.BackPressed += HardwareButtons_BackPressed;
 }
Exemple #2
0
        /// <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>
        public MainPage()
        {
            InitializeComponent();
            _viewModel = DataContext as RestActionViewModel;
            _viewModel.PropertyChanged += OnViewModelPropertyChanged;
            _viewModel.SyncContext      = SynchronizationContext.Current;
            _buttons = new[]
            {
                btnSwitch, btnVersions, btnResources, btnDescribeGlobal, btnDescribe, btnMetadata, btnCreate, btnRetrieve,
                btnUpdate, btnUpsert, btnDelete, btnQuery, btnSearch, btnManual, btnLogout, btnOwnedFiles, btnFilesInGroups,
                btnFilesSharedWithMe
            };

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

            SwitchToRestAction(RestAction.Versions, string.Empty);
        }