private void ViewJsonObjects()
        {
            if (!string.IsNullOrEmpty(JsonString))
            {
                var window = new JsonObjectsView { Height = 280 };
                var contentPresenter = window.FindChild<TextBox>();
                if (contentPresenter != null)
                {
                    var json=JSONUtils.Format(JsonString);
                    contentPresenter.Text = json;
                }

                window.ShowDialog();
            }
        }
Esempio n. 2
0
        private static void ViewJsonObjects(IComplexObjectItemModel item)
        {
            if (item != null)
            {
                var window = new JsonObjectsView {
                    Height = 280
                };
                var contentPresenter = window.FindChild <TextBox>();
                if (contentPresenter != null)
                {
                    var json = item.GetJson();
                    contentPresenter.Text = JSONUtils.Format(json);
                }

                window.ShowDialog();
            }
        }
Esempio n. 3
0
 private void ViewJsonObjects(IServiceInput input)
 {
     JsonObjectsView?.ShowJsonString(JSONUtils.Format(JSONUtils.Format(input.Dev2ReturnType)));
 }
Esempio n. 4
0
 void ViewJsonObjects()
 {
     JsonObjectsView?.ShowJsonString(JsonUtils.Format(ObjectResult));
 }
Esempio n. 5
0
 void ViewObjectsResultForParameterInput(IServiceInput input)
 {
     JsonObjectsView?.ShowJsonString(JSONUtils.Format(input.Dev2ReturnType));
 }