private void SaveDelete_Click(object sender, System.Windows.RoutedEventArgs e) { SavedBuffSet currentSet = SavedCombo.SelectedItem as SavedBuffSet; if (HasCustomSets) { SaveBuffSetDialog dialog = new SaveBuffSetDialog(currentSet.BuffSet); dialog.Closed += new EventHandler(dialog_Closed); dialog.Show(); } else { SavedBuffSet.AllSets.Remove(currentSet); UpdateSavedSets(); } }