예제 #1
0
 private void ViewJsonObjects(IComplexObjectItemModel item)
 {
     if (item != null)
     {
         if (JsonObjectsView != null)
         {
             var json = item.GetJson();
             JsonObjectsView.ShowJsonString(JSONUtils.Format(json));
         }
     }
 }
        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();
            }
        }
예제 #3
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();
            }
        }
예제 #4
0
 private void ViewJsonObjects(IServiceInput input)
 {
     JsonObjectsView?.ShowJsonString(JSONUtils.Format(JSONUtils.Format(input.Dev2ReturnType)));
 }
예제 #5
0
 void ViewJsonObjects()
 {
     JsonObjectsView?.ShowJsonString(JSONUtils.Format(ObjectResult));
 }
예제 #6
0
 void ViewObjectsResultForParameterInput(IServiceInput input)
 {
     JsonObjectsView?.ShowJsonString(JSONUtils.Format(input.Dev2ReturnType));
 }