/// <summary>
        /// Constructor
        /// </summary>
        public ProtocolCodeEditorComponentControl(ProtocolCodeEditorComponent component)
            : base(component)
        {
            InitializeComponent();

            _component = component;

            _name.DataBindings.Add("Value", _component, "Name", true, DataSourceUpdateMode.OnPropertyChanged);
            _description.DataBindings.Add("Value", _component, "Description", true, DataSourceUpdateMode.OnPropertyChanged);
            _acceptButton.DataBindings.Add("Enabled", _component, "AcceptEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
        }
Exemple #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ProtocolCodeEditorComponentControl(ProtocolCodeEditorComponent component)
            : base(component)
        {
            InitializeComponent();

            _component = component;

            _name.DataBindings.Add("Value", _component, "Name", true, DataSourceUpdateMode.OnPropertyChanged);
            _description.DataBindings.Add("Value", _component, "Description", true, DataSourceUpdateMode.OnPropertyChanged);
            _acceptButton.DataBindings.Add("Enabled", _component, "AcceptEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
        }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (ProtocolCodeEditorComponent)component;
 }
Exemple #4
0
 public void SetComponent(IApplicationComponent component)
 {
     _component = (ProtocolCodeEditorComponent)component;
 }