private void newWindow(String username) { this.Close(); if (logintype == "Customer") { CustomerScreen customer = new CustomerScreen(username); customer.ShowDialog(); } else if (logintype == "Clerk") { ClerkScreen clerk = new ClerkScreen(username); clerk.ShowDialog(); } else if (logintype == "Chief") { ChiefScreen chief = new ChiefScreen(username); chief.ShowDialog(); } }
private void clerk_button_Click(object sender, RoutedEventArgs e) { ClerkScreen chiefClerk = new ClerkScreen(user); chiefClerk.ShowDialog(); }