예제 #1
0
        public AttachDocumentComponentControl(AttachDocumentComponent component)
            : base(component)
        {
            InitializeComponent();
            _component = component;

            _file.DataBindings.Add("Value", _component, "FilePath", true, DataSourceUpdateMode.OnPropertyChanged);

            _category.DataSource = _component.CategoryChoices;
            _category.DataBindings.Add("Value", _component, "Category", true, DataSourceUpdateMode.OnPropertyChanged);
        }
		public AttachDocumentComponentControl(AttachDocumentComponent component)
			:base(component)
		{
			InitializeComponent();
			_component = component;

			_file.DataBindings.Add("Value", _component, "FilePath", true, DataSourceUpdateMode.OnPropertyChanged);

			_category.DataSource = _component.CategoryChoices;
			_category.DataBindings.Add("Value", _component, "Category", true, DataSourceUpdateMode.OnPropertyChanged);
		}
예제 #3
0
 public void SetComponent(IApplicationComponent component)
 {
     _component = (AttachDocumentComponent)component;
 }
        public void SetComponent(IApplicationComponent component)
        {
			_component = (AttachDocumentComponent)component;
        }