private void OnTypeSelectionChanged(object sender, SelectionChangedEventArgs e) {
Profile profile = SelectedProfile;
ConfigurationViewModel config = ConfigurationCb.SelectedItem as ConfigurationViewModel;
if (config != null && profile != null) {
if (config.IsWebAvailable) {
ComboBoxServer.SelectedIndex = -1;
ServerList.Clear();
if (config.Configuration.ServersProvider.ServerList.Count > 0) {
// Construct new list to avoid plugin's transparent proxy issues
foreach (Server server in config.Configuration.ServersProvider.ServerList) {
ServerList.Add(new Server(server));
}
ComboBoxServer.SelectedIndex = 0;
}
}
}
ValidatePaths();
}