/// <summary>
		/// Constructor.
		/// </summary>
		public FolderExplorerConfigurationComponentControl(FolderExplorerConfigurationComponent component)
			: base(component)
		{
			_component = component;
			InitializeComponent();

			_folderSystems.DataBindings.Add("SelectedIndex", _component, "SelectedFolderSystemIndex", true, DataSourceUpdateMode.OnPropertyChanged);
			_folderSystems.Format += _folderSystems_Format;
			_folderSystems.ItemDropped += _folderSystems_ItemDropped;
			_folderSystems.MenuModel = _component.FolderSystemsActionModel;
			_folderSystems.ToolbarModel = _component.FolderSystemsActionModel;
			_folderSystems.DataSource = _component.FolderSystems;

			_folders.DataBindings.Add("Selection", _component, "SelectedFolderNode", true, DataSourceUpdateMode.OnPropertyChanged);
			_folders.MenuModel = _component.FoldersActionModel;
			_folders.ToolbarModel = _component.FoldersActionModel;
			_folders.Tree = _component.FolderTree;
			_folders.DataBindings.Add("Enabled", _component, "FolderEditorEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_component.OnEditFolder += delegate { _folders.EditSelectedNode(); };
		}
Exemple #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public FolderExplorerConfigurationComponentControl(FolderExplorerConfigurationComponent component)
            : base(component)
        {
            _component = component;
            InitializeComponent();

            _folderSystems.DataBindings.Add("SelectedIndex", _component, "SelectedFolderSystemIndex", true, DataSourceUpdateMode.OnPropertyChanged);
            _folderSystems.Format      += _folderSystems_Format;
            _folderSystems.ItemDropped += _folderSystems_ItemDropped;
            _folderSystems.MenuModel    = _component.FolderSystemsActionModel;
            _folderSystems.ToolbarModel = _component.FolderSystemsActionModel;
            _folderSystems.DataSource   = _component.FolderSystems;

            _folders.DataBindings.Add("Selection", _component, "SelectedFolderNode", true, DataSourceUpdateMode.OnPropertyChanged);
            _folders.MenuModel    = _component.FoldersActionModel;
            _folders.ToolbarModel = _component.FoldersActionModel;
            _folders.Tree         = _component.FolderTree;
            _folders.DataBindings.Add("Enabled", _component, "FolderEditorEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _component.OnEditFolder += delegate { _folders.EditSelectedNode(); };
        }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (FolderExplorerConfigurationComponent)component;
 }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (FolderExplorerConfigurationComponent)component;
 }