void OnProxyTypeChanged(object sender, RoutedEventArgs e) { editProxy.IsEnabled = cbProxy.SelectedIndex == 1 || cbProxy.SelectedIndex == 2; }