Ejemplo n.º 1
0
 private void BackButton(object sender, RoutedEventArgs e)
 {
     if (GlobalBack.role == Role.Director)
     {
         Roles.Director dir = new Roles.Director();
         dir.Visibility = Visibility.Visible;
     }
     if (GlobalBack.role == Role.Customer)
     {
         Roles.Customer cust = new Roles.Customer();
         cust.Visibility = Visibility.Visible;
     }
     if (GlobalBack.role == Role.Master)
     {
         Roles.Master master = new Roles.Master();
         master.Visibility = Visibility.Visible;
     }
     if (GlobalBack.role == Role.Manager)
     {
         Roles.Manager manager = new Roles.Manager();
         manager.Visibility = Visibility.Visible;
     }
     if (GlobalBack.role == Role.ZamDirectora)
     {
         Roles.ZamDirectora zam = new Roles.ZamDirectora();
         zam.Visibility = Visibility.Visible;
     }
     this.Close();
 }
Ejemplo n.º 2
0
 private void BackButton(object sender, RoutedEventArgs e)
 {
     Roles.Director directorWindow = new Roles.Director();
     directorWindow.Visibility = Visibility.Visible;
     this.Close();
 }