Ejemplo n.º 1
0
        private void LoadFromFile(string fileName)
        {
            string json = File.ReadAllText(fileName);

            JsonViewer.ShowTab(Tabs.Viewer);
            JsonViewer.Json = json;
        }
Ejemplo n.º 2
0
 public override void AddToTab(TabPage tabPage)
 {
     viewer = new JsonViewer();
     tabPage.Text = "JSON";
     tabPage.Controls.Add(viewer);
     viewer.Dock = DockStyle.Fill;
 }
Ejemplo n.º 3
0
 public JsonView() : base()
 {
     jsonViewer = new JsonViewer();
     jsonViewer.ShowTab(Tabs.Viewer);
     jsonViewer.Dock = DockStyle.Fill;
     panel1.Controls.Add(jsonViewer);
     InitializeComponent();
 }
Ejemplo n.º 4
0
        private void LoadFromClipboard()
        {
            string json = Clipboard.GetText();

            if (!String.IsNullOrEmpty(json))
            {
                JsonViewer.ShowTab(Tabs.Viewer);
                JsonViewer.Json = json;
            }
        }
Ejemplo n.º 5
0
		public JsonView():base()
		{
			
			jsonViewer = new JsonViewer();
			jsonViewer.ShowTab(Tabs.Viewer);
			jsonViewer.Dock = DockStyle.Fill;
			panel1.Controls.Add(jsonViewer);
			InitializeComponent();
			
		}
Ejemplo n.º 6
0
		public PostMapping(ElasticSearchClient currentElasticSearchInstance, string index, string type)
		{
			InitializeComponent();
		    jsonViewer = new JsonViewer();
			jsonViewer.ShowTab(Tabs.Viewer);
			jsonViewer.Dock = DockStyle.Fill;
			panel2.Controls.Add(jsonViewer);

			textBox1.Text = index;
			textBox2.Text = type;
			this.currentElasticSearchInstance = currentElasticSearchInstance;
		}
Ejemplo n.º 7
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     JsonViewer.ShowTab(Tabs.Viewer);
 }