public ServerTreeConfigurationComponentControl(ServerTreeConfigurationComponent component) : base(component) { _component = component; InitializeComponent(); _description.DataBindings.Add("Text", _component, "Description", true, DataSourceUpdateMode.OnPropertyChanged); _splitContainer.Panel2.Controls.Add((UserControl)_component.ServerTreeHost.ComponentView.GuiElement); _splitContainer.Panel2.Controls[0].Dock = DockStyle.Fill; }
public ServerTreeConfigurationComponentControl(ServerTreeConfigurationComponent component) :base(component) { _component = component; InitializeComponent(); _description.DataBindings.Add("Text", _component, "Description", true, DataSourceUpdateMode.OnPropertyChanged); _splitContainer.Panel2.Controls.Add((UserControl)_component.ServerTreeHost.ComponentView.GuiElement); _splitContainer.Panel2.Controls[0].Dock = DockStyle.Fill; }
/// <summary> /// Called by the host to assign this view to a component. /// </summary> public void SetComponent(IApplicationComponent component) { _component = (ServerTreeConfigurationComponent)component; }