private void OnServerTreeUpdated(object sender, EventArgs e)
        {
            var checkedServers = _serverTreeComponent.ServerTree.RootServerGroup.GetCheckedServers(true);

            CheckedServers = new DicomServiceNodeList(checkedServers.SelectMany(s => s.ToDicomServiceNodes()));
            Modified       = true;
        }
        public void SetSelection(IServerTreeNode serverTreeNode)
        {
            _selectedServers = new DicomServiceNodeList(serverTreeNode.ToDicomServiceNodes())
            {
                Name = serverTreeNode.DisplayName,
                Id   = serverTreeNode.Path
            };

            _serverTree.CurrentNode = serverTreeNode;
            FireSelectedServerChangedEvent();
        }
        public ServerTreeComponent()
        {
            _serverTree = new ServerTree();

            if (_serverTree.CurrentNode != null)
            {
                _selectedServers = new DicomServiceNodeList(_serverTree.CurrentNode.ToDicomServiceNodes())
                {
                    Name = _serverTree.CurrentNode.DisplayName, Id = _serverTree.CurrentNode.Path
                };
            }
            else
            {
                _selectedServers = new DicomServiceNodeList();
            }
        }
 protected ServerTreeConfigurationComponent(string description, DicomServiceNodeList checkedServers)
 {
     _description    = description ?? "";
     _checkedServers = checkedServers;
 }