Пример #1
0
 void OpenJson(LightJson.JsonValue val)
 {
     m_val                = val;
     m_bInner             = true;
     richTextBoxView.Text = val.ToString();
     m_bInner             = false;
     AssignTree(val);
 }
Пример #2
0
        private void ToolStripMenuItemCopyAll_Click(object sender, EventArgs e)
        {
            LightJson.JsonValue val   = SelectValue();
            TreeNode            vNode = treeViewObject.SelectedNode;

            LightJson.JsonObject o = new LightJson.JsonObject();
            o[vNode.Name] = val;
            val           = o;

            Clipboard.SetText(val.ToString(true));
        }
Пример #3
0
 private void ToolStripMenuItemCopyValue_Click(object sender, EventArgs e)
 {
     LightJson.JsonValue val = SelectValue();
     if (IsSimple(val))
     {
         Clipboard.SetText(val.ToString());
     }
     else
     {
         TreeNode vNode = treeViewObject.SelectedNode;
         Clipboard.SetText(vNode.Name);
     }
 }
Пример #4
0
 private void ToolStripButton1_Click(object sender, EventArgs e)
 {
     m_bInner             = true;
     richTextBoxView.Text = m_val.ToString(true);
     m_bInner             = false;
 }