/// <summary> /// Constructor. /// </summary> public ExplorerConfigurationComponentControl(ExplorerConfigurationComponent component) :base(component) { _component = component; InitializeComponent(); _launchAsShelf.DataBindings.Add("Checked", _component, "LaunchAsShelf", false, DataSourceUpdateMode.OnPropertyChanged); _launchAsWorkspace.DataBindings.Add("Checked", _component, "LaunchAsWorkspace", false, DataSourceUpdateMode.OnPropertyChanged); _launchAtStartup.DataBindings.Add("Checked", _component, "LaunchAtStartup", false, DataSourceUpdateMode.OnPropertyChanged); }
/// <summary> /// Constructor. /// </summary> public ExplorerConfigurationComponentControl(ExplorerConfigurationComponent component) : base(component) { _component = component; InitializeComponent(); _launchAsShelf.DataBindings.Add("Checked", _component, "LaunchAsShelf", false, DataSourceUpdateMode.OnPropertyChanged); _launchAsWorkspace.DataBindings.Add("Checked", _component, "LaunchAsWorkspace", false, DataSourceUpdateMode.OnPropertyChanged); _launchAtStartup.DataBindings.Add("Checked", _component, "LaunchAtStartup", false, DataSourceUpdateMode.OnPropertyChanged); }
/// <summary> /// Called by the host to assign this view to a component. /// </summary> public void SetComponent(IApplicationComponent component) { _component = (ExplorerConfigurationComponent)component; }