private void ConnPane_OnConnectionChanged(object sender, ConnectionSelectedEventArgs e) { if (e.SelectedConnection != null) { if (e.ConnectionAdded) { Customizations.IsEnabled = true; Solutions.IsEnabled = true; } else { Customizations.IsEnabled = false; Solutions.IsEnabled = false; } } else { Customizations.IsEnabled = false; Solutions.IsEnabled = false; } Package.IsEnabled = false; Unpackage.IsEnabled = false; SetDownloadManagedEnabled(false); DownloadManaged.IsChecked = false; }
private void ConnPane_OnConnectionChanged(object sender, ConnectionSelectedEventArgs e) { if (e.SelectedConnection != null) { if (e.ConnectionAdded) { Customizations.IsEnabled = true; Solutions.IsEnabled = true; } else { Customizations.IsEnabled = false; Solutions.IsEnabled = false; Assemblies.ItemsSource = null; } } else { Customizations.IsEnabled = false; Solutions.IsEnabled = false; } Publish.IsEnabled = false; Assemblies.IsEnabled = false; }