Beispiel #1
0
        /// <summary>
        /// Called by the host to initialize the application component.
        /// </summary>
        public override void Start()
        {
            _serverTreeComponent = new ServerTreeComponent
            {
                IsReadOnly          = true,
                ShowCheckBoxes      = true,
                ShowLocalServerNode = false,
                ShowTitlebar        = false,
                ShowTools           = false
            };

            InitializeCheckedServers();

            _serverTreeComponent.ServerTree.ServerTreeUpdated += OnServerTreeUpdated;
            _serverTreeHost = new ServerTreeComponentHost(this);

            base.Start();
            _serverTreeHost.StartComponent();
        }
 public ServerTreeToolContext(ServerTreeComponent component)
 {
     Platform.CheckForNullReference(component, "component");
     _component = component;
 }