protected RetrieveProgressComponent CreateRetrieveProgressComponent()
        {
            Table<RetrieveProgressResult> table = new Table<RetrieveProgressResult>();
            InitializeRetrieveProgressTable(table);

            RetrieveProgressComponent retrieveProgressComponent =
                new RetrieveProgressComponent(RetrieveProgressComponent.ToolbarSite, RetrieveProgressComponent.MenuSite,
                                              RetrieveProgressComponent.ToolNamespace,
                                              new RetrieveProgressToolExtensionPoint(), table);

            return retrieveProgressComponent;
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public RetrieveProgressComponentControl(RetrieveProgressComponent component)
            : base(component)
        {
            _component = component;
            InitializeComponent();

            ClearCanvasStyle.SetTitleBarStyle(_titleBar);

            _titleBar.DataBindings.Add("Text", _component, "Title", true, DataSourceUpdateMode.OnPropertyChanged);

            _tableView.Table = _component.Table;
            _tableView.ToolbarModel = _component.ToolbarModel;
            _tableView.MenuModel = _component.MenuModel;
            _tableView.SelectionChanged += OnSelectionChanged;
            _tableView.ItemDoubleClicked += OnItemDoubleClicked;
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public RetrieveProgressComponentControl(RetrieveProgressComponent component)
            : base(component)
        {
            _component = component;
            InitializeComponent();

            ClearCanvasStyle.SetTitleBarStyle(_titleBar);

            _titleBar.DataBindings.Add("Text", _component, "Title", true, DataSourceUpdateMode.OnPropertyChanged);

            _tableView.Table              = _component.Table;
            _tableView.ToolbarModel       = _component.ToolbarModel;
            _tableView.MenuModel          = _component.MenuModel;
            _tableView.SelectionChanged  += OnSelectionChanged;
            _tableView.ItemDoubleClicked += OnItemDoubleClicked;
        }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (RetrieveProgressComponent)component;
 }
Esempio n. 5
0
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (RetrieveProgressComponent)component;
 }