// Returns to the EmployeePinCodeWindow private void BackButton_Click(object sender, RoutedEventArgs e) { EmployeePinCodeWindow employeePinCodeWindow = new EmployeePinCodeWindow(); employeePinCodeWindow.GetController(controller); employeePinCodeWindow.Show(); Thread.Sleep(10); this.Close(); }
/// Goes to EmployeePincodeWindow private void GoToPinCodeWindow(object sender, RoutedEventArgs e) { rectangleRed.Fill = new SolidColorBrush(Color.FromRgb(254, 24, 24)); EmployeePinCodeWindow employeePinCodeWindow = new EmployeePinCodeWindow(); employeePinCodeWindow.GetController(controller); employeePinCodeWindow.Show(); Thread.Sleep(10); this.Close(); }