private void FormatToJSON() { if (Settings.Default.SettingUseJSON) { richTextBoxPreview.Text = Settings.Default.SettingUseLocalFile ? Supporter.FormatJson(File.ReadAllText(Settings.Default.filePath)) : File.ReadAllText(Settings.Default.filePath); } else { richTextBoxPreview.Text = File.ReadAllText(Settings.Default.filePath); } }
private void checkBoxShowDownloadedContent_CheckedChanged(object sender, EventArgs e) { if (checkBoxShowDownloadedContent.Checked) { richTextBoxPreview.Text = Supporter.FormatJson(File.ReadAllText(Settings.Default.filePath)); richTextBoxPreview.Visible = true; } else { richTextBoxPreview.Visible = false; } }