2021-09-28 14:14:16 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
using System.Windows.Documents;
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
using System.Windows.Shapes;
|
|
|
|
|
|
2021-11-10 21:24:39 +01:00
|
|
|
|
namespace EliteBGS {
|
2021-09-28 14:14:16 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for CombatZoneDialog.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class CombatZoneDialog : Window {
|
|
|
|
|
public CombatZoneDialog() {
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Type => (type.SelectedItem as ComboBoxItem).Content.ToString();
|
|
|
|
|
public string Grade => (grade.SelectedItem as ComboBoxItem).Content.ToString();
|
|
|
|
|
public int Amount {
|
|
|
|
|
get {
|
|
|
|
|
try {
|
|
|
|
|
return int.Parse(amount.Text);
|
|
|
|
|
} catch (Exception) {
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Accept_Click(object sender, RoutedEventArgs e) {
|
|
|
|
|
DialogResult = true;
|
|
|
|
|
Close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Cancel_Click(object sender, RoutedEventArgs e) {
|
|
|
|
|
DialogResult = false;
|
|
|
|
|
Close();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|