Exemplo n.º 1
0
        /// <summary>
        /// Clone for typical multi-tab use.
        /// </summary>
        public object Clone()
        {
            var box = new PlainTextBox
            {
                ForeColor                  = ForeColor,
                BackColor                  = BackColor,
                Font                       = (Font)Font.Clone(),
                Dock                       = Dock,
                WordWrap                   = WordWrap,
                BorderStyle                = BorderStyle,
                DelayedEventsInterval      = DelayedEventsInterval,
                DelayedTextChangedInterval = DelayedTextChangedInterval
            };

            //_keyShortcuts = new Dictionary<Keys, Action>(_keyShortcuts),
            //var clone = (RicherTextBox)MemberwiseClone();
            //// Clone reference types
            //clone.LazySelecter = (LazyEventer)LazySelecter.Clone();
            //clone.LazyTyper = (LazyEventer)LazyTyper.Clone();
            //clone._lazyStateTracker = (LazyEventer) _lazyStateTracker.Clone();
            //clone._redoUndoMan = new RedoUndoManger<RichTextState>();
            //clone._keyShortcuts = new Dictionary<Keys, Action>(_keyShortcuts);
            //clone.Font = (Font)Font.Clone();
            //clone.Text = Text.Clone().ToString();
            return(box);
        }
Exemplo n.º 2
0
 public RegexRefactoringForm(PlainTextBox textBox)
 {
     this.textBox = textBox;
     InitializeComponent();
     PopulateList();
 }