/// <summary>
        /// Constructor
        /// </summary>
        public OrderNoteEditorComponentControl(OrderNoteEditorComponent component)
            :base(component)
        {
            InitializeComponent();
            _component = component;

            _comment.DataBindings.Add("Value", _component, "Comment", true, DataSourceUpdateMode.OnPropertyChanged);
			_cannedTextSupport = new CannedTextSupport(_comment, _component.CannedTextLookupHandler);

			_acceptButton.DataBindings.Add("Enabled", _component, "AcceptEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            _comment.ReadOnly = !_component.IsNewItem;
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public OrderNoteEditorComponentControl(OrderNoteEditorComponent component)
            : base(component)
        {
            InitializeComponent();
            _component = component;

            _comment.DataBindings.Add("Value", _component, "Comment", true, DataSourceUpdateMode.OnPropertyChanged);
            _cannedTextSupport = new CannedTextSupport(_comment, _component.CannedTextLookupHandler);

            _acceptButton.DataBindings.Add("Enabled", _component, "AcceptEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            _comment.ReadOnly = !_component.IsNewItem;
        }
Exemplo n.º 3
0
 public void SetComponent(IApplicationComponent component)
 {
     _component = (OrderNoteEditorComponent)component;
 }
Exemplo n.º 4
0
 public void SetComponent(IApplicationComponent component)
 {
     _component = (OrderNoteEditorComponent)component;
 }