Beispiel #1
0
 public void Split()
 {
     if (this.secondaryTextArea == null)
     {
         this.secondaryTextArea            = new TextAreaControl(this);
         this.secondaryTextArea.Dock       = DockStyle.Bottom;
         this.secondaryTextArea.Height     = base.Height / 2;
         this.textAreaSplitter             = new Splitter();
         this.textAreaSplitter.BorderStyle = BorderStyle.FixedSingle;
         this.textAreaSplitter.Height      = 8;
         this.textAreaSplitter.Dock        = DockStyle.Bottom;
         this.textAreaPanel.Controls.Add(this.textAreaSplitter);
         this.textAreaPanel.Controls.Add(this.secondaryTextArea);
         this.InitializeTextAreaControl(this.secondaryTextArea);
         this.secondaryTextArea.OptionsChanged();
         return;
     }
     this.textAreaPanel.Controls.Remove(this.secondaryTextArea);
     this.textAreaPanel.Controls.Remove(this.textAreaSplitter);
     this.secondaryTextArea.Dispose();
     this.textAreaSplitter.Dispose();
     this.secondaryTextArea = null;
     this.textAreaSplitter  = null;
 }
Beispiel #2
0
 protected virtual void InitializeTextAreaControl(TextAreaControl newControl)
 {
 }