public FrmCheckoutPromptTwo(FrmCheckoutPrompt caller, string filterTxt)
        {
            _filterTxt = filterTxt;

            _employeeManager = new EmployeeManager();

            _checkoutPromptOne = caller;

            InitializeComponent();

            PopulateWindow();
        }
Esempio n. 2
0
        private void BtnCheckout_OnClick(object sender, RoutedEventArgs e)
        {
            var vehicle = (ResortVehicle)dtgAvailableVehicles.SelectedItem;

            if (vehicle == null)
            {
                MessageBox.Show("Please select an available vehicle");
                return;
            }

            var prompt = new FrmCheckoutPrompt(this, vehicle);

            prompt.ShowDialog();
        }