Пример #1
0
        public void ReloadServers()
        {
            log.Info("Reloading Servers - initiated by user");
            var servers = StudioController.ListServers();

            _serverList.Clear();

            foreach (var item in ItemFactory.BuildServer(servers))
            {
                _serverList.Add(item);
            }

            log.Info("Reloading Servers - loaded:" + _serverList.Count + " servers.");
            cbServer.ItemsSource = _serverList;

            if (_serverList.Count == 1)
            {
                cbServer.SelectedIndex = 0;
            }
        }