/// <summary> /// Constructor. /// </summary> public HomepageConfigurationComponentControl(HomepageConfigurationComponent component) : base(component) { _component = component; InitializeComponent(); _showHomepageOnStartup.DataBindings.Add("Checked", _component, "ShowHomepageOnStartUp", true, DataSourceUpdateMode.OnPropertyChanged); _preventHompageClosing.DataBindings.Add("Checked", _component, "PreventHomepageFromClosing", true, DataSourceUpdateMode.OnPropertyChanged); _preventHompageClosing.DataBindings.Add("Enabled", _component, "PreventHomepageFromClosingEnabled"); }
/// <summary> /// Constructor. /// </summary> public HomepageConfigurationComponentControl(HomepageConfigurationComponent component) :base(component) { _component = component; InitializeComponent(); _showHomepageOnStartup.DataBindings.Add("Checked", _component, "ShowHomepageOnStartUp", true, DataSourceUpdateMode.OnPropertyChanged); _preventHompageClosing.DataBindings.Add("Checked", _component, "PreventHomepageFromClosing", true, DataSourceUpdateMode.OnPropertyChanged); _preventHompageClosing.DataBindings.Add("Enabled", _component, "PreventHomepageFromClosingEnabled"); }
/// <summary> /// Called by the host to assign this view to a component. /// </summary> public void SetComponent(IApplicationComponent component) { _component = (HomepageConfigurationComponent)component; }
/// <summary> /// Called by the host to assign this view to a component. /// </summary> public void SetComponent(IApplicationComponent component) { _component = (HomepageConfigurationComponent)component; }