CostSheetPricingSelection.xaml.cs 902 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using InABox.Wpf;
  2. using System.Windows;
  3. namespace PRSDesktop
  4. {
  5. public enum PricingType
  6. {
  7. Nominal,
  8. Preferred,
  9. Lowest
  10. }
  11. /// <summary>
  12. /// Interaction logic for CostSheetPricingSelection.xaml
  13. /// </summary>
  14. public partial class CostSheetPricingSelection : ThemableWindow
  15. {
  16. public CostSheetPricingSelection()
  17. {
  18. InitializeComponent();
  19. }
  20. public PricingType PricingType =>
  21. Nominal.IsChecked == true ? PricingType.Nominal : Preferred.IsChecked == true ? PricingType.Preferred : PricingType.Lowest;
  22. private void OK_Click(object sender, RoutedEventArgs e)
  23. {
  24. DialogResult = true;
  25. Close();
  26. }
  27. private void Cancel_Click(object sender, RoutedEventArgs e)
  28. {
  29. DialogResult = false;
  30. Close();
  31. }
  32. }
  33. }