예제 #1
0
        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();
            }
        }
예제 #2
0
 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();
     }
 }