Example #1
0
 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);
     }
 }
Example #2
0
 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;
     }
 }