Example #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);
 }
Example #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);
 }
Example #3
0
 private void btn_beaurify_Click(object sender, EventArgs e)
 {
     this.txt_result.Text = JsonBeautify.beautify(this.txt_result.Text);
 }
Example #4
0
 public static void PJSON(this object o)
 {
     IWindow.write_line(JsonBeautify.beautify(o.ToString()) + Environment.NewLine);
 }