1234567891011121314151617181920212223242526272829303132333435363738 |
- using InABox.Wpf;
- using System.Windows;
- namespace PRSDesktop
- {
- public enum PricingType
- {
- Nominal,
- Preferred,
- Lowest
- }
- /// <summary>
- /// Interaction logic for CostSheetPricingSelection.xaml
- /// </summary>
- public partial class CostSheetPricingSelection : ThemableWindow
- {
- public CostSheetPricingSelection()
- {
- InitializeComponent();
- }
- public PricingType PricingType =>
- Nominal.IsChecked == true ? PricingType.Nominal : Preferred.IsChecked == true ? PricingType.Preferred : PricingType.Lowest;
- private void OK_Click(object sender, RoutedEventArgs e)
- {
- DialogResult = true;
- Close();
- }
- private void Cancel_Click(object sender, RoutedEventArgs e)
- {
- DialogResult = false;
- Close();
- }
- }
- }
|