コード例 #1
0
 public frmSerializer()
 {
     InitializeComponent();
     this.lblFileNameXML.Text = Path.GetTempFileName();
     File.Delete(this.lblFileNameXML.Text);
     this.lblFileNameXML.Text  = this.lblFileNameXML.Text.Replace(".tmp", ".xml");
     this.lblFileNameJSON.Text = Path.GetTempFileName();
     File.Delete(this.lblFileNameJSON.Text);
     this.lblFileNameJSON.Text  = this.lblFileNameJSON.Text.Replace(".tmp", ".json");
     this.txtBeautificated.Text = ObjectJsonUtility.BeautifyJSON(this.txtJsonUgly.Text);
     ObjectEnabling(true);
 }
コード例 #2
0
 private void btnBeautify_Click(object sender, EventArgs e)
 {
     this.txtBeautificated.Text = ObjectJsonUtility.BeautifyJSON(this.txtJsonUgly.Text);
 }