private void SaveDelete_Click(object sender, System.Windows.RoutedEventArgs e) { SavedTalentSpec currentSpec = SavedCombo.SelectedItem as SavedTalentSpec; if (HasCustomSpec) { SaveTalentSpecDialog dialog = new SaveTalentSpecDialog(currentSpec.TalentSpec(), currentSpec.Tree1, currentSpec.Tree2, currentSpec.Tree3); dialog.Closed += new EventHandler(dialog_Closed); dialog.Show(); } else { SavedTalentSpec.AllSpecs.Remove(currentSpec); UpdateSavedSpecs(); } }