コード例 #1
0
ファイル: HtmlEditor.cs プロジェクト: ihorrohi/file-manager
 public HtmlEditor(string content, string path, int key)
 {
     InitializeComponent();
     Content   = content;
     this.path = path;
     richTextBox1.TextChanged   += richtextBox1_TextChanged;
     richTextBox1.SelectionStart = 0;
     if (key == 1)
     {
         Presenter.TitleBackColor(richTextBox1);
     }
 }
コード例 #2
0
 public TextEditorForm(string content, string path, bool key)
 {
     InitializeComponent();
     Content                     = content;
     manualContent               = content;
     this.path                   = path;
     richTextBox1.TextChanged   += richtextBox1_TextChanged;
     richTextBox1.SelectionStart = 0;
     if (key == true)
     {
         Presenter.TitleBackColor(richTextBox1);
     }
 }