示例#1
0
 private void btn_beautify_Click(object sender, EventArgs e)
 {
     is_beautify            = true;
     this.lab_beautify.Text = "Text has beautify";
     this.txt_select.Text   = JsonBeautify.beautify(this.txt_select.Text);
     this.txt_operate.Text  = JsonBeautify.beautify(this.txt_operate.Text);
 }
示例#2
0
 public void show_cursor_in_txt(MongoCursor <BsonDocument> cursor)
 {
     this.txt_result.Text = "";
     foreach (BsonDocument doc in cursor)
     {
         this.txt_result.Text += doc.ToString() + Environment.NewLine;
     }
     this.txt_result.Text = JsonBeautify.beautify(this.txt_result.Text);
 }
示例#3
0
 private void btn_beaurify_Click(object sender, EventArgs e)
 {
     this.txt_result.Text = JsonBeautify.beautify(this.txt_result.Text);
 }
示例#4
0
 public static void PJSON(this object o)
 {
     IWindow.write_line(JsonBeautify.beautify(o.ToString()) + Environment.NewLine);
 }