/// <summary> /// Handles the Click event of the btnTestDispense control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void btnTestDispense_Click(object sender, RoutedEventArgs e) { using (TestCashDispenser cashDispenser = new TestCashDispenser()) { cashDispenser.ShowDialogEx(this); this.LoadItems(); } }