/// <summary> /// Constructor /// </summary> public SettingsManagementComponentControl(SettingsManagementComponent component) : base(component) { InitializeComponent(); _component = component; _settingsGroupTableView.Table = _component.SettingsGroupTable; _settingsGroupTableView.DataBindings.Add("Selection", _component, "SelectedSettingsGroup", true, DataSourceUpdateMode.OnPropertyChanged); _settingsGroupTableView.ToolbarModel = _component.SettingsGroupsActionModel; _valueTableView.Table = _component.SettingsPropertiesTable; _valueTableView.DataBindings.Add("Selection", _component, "SelectedSettingsProperty", true, DataSourceUpdateMode.OnPropertyChanged); _valueTableView.ToolbarModel = _component.SettingsPropertiesActionModel; _valueTableView.ItemDoubleClicked += new EventHandler(ValueTableItemDoubleClicked); }
/// <summary> /// Constructor /// </summary> public SettingsManagementComponentControl(SettingsManagementComponent component) :base(component) { InitializeComponent(); _component = component; _settingsGroupTableView.Table = _component.SettingsGroupTable; _settingsGroupTableView.DataBindings.Add("Selection", _component, "SelectedSettingsGroup", true, DataSourceUpdateMode.OnPropertyChanged); _settingsGroupTableView.ToolbarModel = _component.SettingsGroupsActionModel; _valueTableView.Table = _component.SettingsPropertiesTable; _valueTableView.DataBindings.Add("Selection", _component, "SelectedSettingsProperty", true, DataSourceUpdateMode.OnPropertyChanged); _valueTableView.ToolbarModel = _component.SettingsPropertiesActionModel; _valueTableView.ItemDoubleClicked += new EventHandler(ValueTableItemDoubleClicked); }
public void SetComponent(IApplicationComponent component) { _component = (SettingsManagementComponent)component; }