Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EditorView"/> class.
        /// </summary>
        public EditorView(IEditorArea editorArea)
        {
            if (editorArea == null)
            {
                throw new ArgumentNullException("editorArea");
            }

            _editorArea = editorArea;

            _editorCommands     = EditorConnector.CreateEditorCommands(_editorArea);
            _editorKeyBinding   = new EditorKeyBinding(this);
            _editorMouseBinding = new EditorMouseBinding(this);

            InitializeComponent();
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EditorView"/> class.
        /// </summary>
        public EditorView(IEditorArea editorArea)
        {
            if (editorArea == null)
            {
                throw new ArgumentNullException("editorArea");
            }

            _editorArea = editorArea;

            _editorCommands = EditorConnector.CreateEditorCommands(_editorArea);
            _editorKeyBinding = new EditorKeyBinding(this);
            _editorMouseBinding = new EditorMouseBinding(this);

            InitializeComponent();
        }