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); }
private void btnBeautify_Click(object sender, EventArgs e) { this.txtBeautificated.Text = ObjectJsonUtility.BeautifyJSON(this.txtJsonUgly.Text); }