OptionsPanelHTML.cs 925 B

1234567891011121314151617181920212223242526272829303132
  1. using static com.insanitydesign.MarkdownViewerPlusPlus.MarkdownViewerConfiguration;
  2. /// <summary>
  3. ///
  4. /// </summary>
  5. namespace com.insanitydesign.MarkdownViewerPlusPlus.Forms
  6. {
  7. /// <summary>
  8. ///
  9. /// </summary>
  10. public partial class OptionsPanelHTML : AbstractOptionsPanel
  11. {
  12. /// <summary>
  13. ///
  14. /// </summary>
  15. /// <param name="options"></param>
  16. public override void LoadOptions(Options options)
  17. {
  18. this.txtCssStyles.Text = options.HtmlCssStyle;
  19. this.chkOpenHTMLExport.Checked = options.htmlOpenExport;
  20. }
  21. /// <summary>
  22. ///
  23. /// </summary>
  24. /// <param name="options"></param>
  25. public override void SaveOptions(ref Options options)
  26. {
  27. options.HtmlCssStyle = this.txtCssStyles.Text;
  28. options.htmlOpenExport = this.chkOpenHTMLExport.Checked;
  29. }
  30. }
  31. }