private void checkOutButton_Click_1(object sender, RoutedEventArgs e) { controller.CheckInRepo.CheckOut(controller.CurrentPerson); EmployeeCheckoutWindow checkoutWindow = new EmployeeCheckoutWindow(); checkoutWindow.GetController(controller); checkoutWindow.Show(); this.Close(); }
// Checks out the employee from the database, and goes to the EmployeeCheckoutWindow private void CheckOutButton(object sender, RoutedEventArgs e) { controller.CheckInRepo.CheckOut(controller.CurrentPerson); EmployeeCheckoutWindow employeeCheckoutWindow = new EmployeeCheckoutWindow(); employeeCheckoutWindow.GetController(controller); employeeCheckoutWindow.Show(); Thread.Sleep(10); this.Close(); }