/// <summary>
        /// Constructor
        /// </summary>
        public DefaultCodeEditorComponentControl(DefaultCodeEditorComponent component)
            :base(component)
        {
            InitializeComponent();

            _component = component;
            _component.InsertTextRequested += new EventHandler<DefaultCodeEditorComponent.InsertTextEventArgs>(_component_InsertTextRequested);
            _editor.DataBindings.Add("Text", _component, "Text", true, DataSourceUpdateMode.OnPropertyChanged);
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public DefaultCodeEditorComponentControl(DefaultCodeEditorComponent component)
            : base(component)
        {
            InitializeComponent();

            _component = component;
            _component.InsertTextRequested += new EventHandler <DefaultCodeEditorComponent.InsertTextEventArgs>(_component_InsertTextRequested);
            _editor.DataBindings.Add("Text", _component, "Text", true, DataSourceUpdateMode.OnPropertyChanged);
        }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (DefaultCodeEditorComponent)component;
 }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (DefaultCodeEditorComponent)component;
 }
 private void _component_InsertTextRequested(object sender, DefaultCodeEditorComponent.InsertTextEventArgs e)
 {
     _editor.SelectedText = e.Text;
 }