コード例 #1
0
ファイル: LogIn.xaml.cs プロジェクト: 7thsanctum/NFS_System
 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();
     }
 }
コード例 #2
0
        private void clerk_button_Click(object sender, RoutedEventArgs e)
        {
            ClerkScreen chiefClerk = new ClerkScreen(user);

            chiefClerk.ShowDialog();
        }