public SeriesBrowserComponentControl(SeriesBrowserComponent component)
        {
            InitializeComponent();

            _seriesBrowserComponent = component;

            //_seriesBrowserComponent.SelectedServerChanged += new EventHandler(OnSelectedServerChanged);
            _seriesTableView.Table             = _seriesBrowserComponent.SeriesList;
            _seriesTableView.ToolbarModel      = _seriesBrowserComponent.ToolbarModel;
            _seriesTableView.MenuModel         = _seriesBrowserComponent.ContextMenuModel;
            _seriesTableView.SelectionChanged += new EventHandler(OnSeriesTableViewSelectionChanged);
            //_seriesTableView.ItemDoubleClicked += new EventHandler(OnSeriesTableViewDoubleClick);

            _bindingSource            = new BindingSource();
            _bindingSource.DataSource = _seriesBrowserComponent;
        }
Exemplo n.º 2
0
 public SeriesBrowserToolContext(SeriesBrowserComponent component)
 {
     Platform.CheckForNullReference(component, "component");
     _component = component;
 }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (SeriesBrowserComponent)component;
 }