/// <summary> /// Constructor. /// </summary> public AimDataServiceSearchResultsComponentControl(AimDataServiceSearchResultsComponent component) : base(component) { InitializeComponent(); _component = component; ClearCanvasStyle.SetTitleBarStyle(_titleBar); _titleBar.DataBindings.Add("Text", _component, "Title", true, DataSourceUpdateMode.OnPropertyChanged); DataBindings.Add("ErrorMessage", _component, "ErrorMessage", 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 = (AimDataServiceSearchResultsComponent)component; }