Пример #1
0
        private async void ShowJson()
        {
            var item = SelectedItem;

            _jsonWindowId = await NewWindow.Create(typeof(Views.JsonPage), "JSON", _jsonWindowId);

            if (item.Data != null)
            {
                GetEvent <ShowJsonEvent>().Publish(item.IsRequest ? item.Data.RequestBody : item.Data.ResponseBody);
            }
            else
            {
                GetEvent <ShowJsonEvent>().Publish(item.Text);
            }
        }
 private async void NewWindowClick(object sender, RoutedEventArgs e)
 {
     _logWindowId = await NewWindow.Create(typeof(Views.LogWindowPage), "LOG WINDOW", _logWindowId);
 }