コード例 #1
0
 private void LoginFlyoutBtn_Click(object sender, RoutedEventArgs e)
 {
     if ((UserName.Text == "reuven") && (Password.Password == "1234"))
     {
         HostingUnitFirstWindow s = new HostingUnitFirstWindow();
         s.Height = (System.Windows.SystemParameters.PrimaryScreenHeight * 0.89);
         s.Width  = (System.Windows.SystemParameters.PrimaryScreenWidth * 0.89);
         s.Show();
     }
     else if ((UserName.Text == "b") || (Password.Password == "b"))
     {
         GuestRequestFirstWindow s = new GuestRequestFirstWindow();
         s.Height = (System.Windows.SystemParameters.PrimaryScreenHeight * 0.89);
         s.Width  = (System.Windows.SystemParameters.PrimaryScreenWidth * 0.89);
         s.Show();
     }
     else if ((UserName.Text == "c") || (Password.Password == "c"))
     {
         WebsiteManagerFirstWindow s = new WebsiteManagerFirstWindow();
         s.Height = (System.Windows.SystemParameters.PrimaryScreenHeight * 0.89);
         s.Width  = (System.Windows.SystemParameters.PrimaryScreenWidth * 0.89);
         s.Show();
     }
     else
     {
         MessageBox.Show("Wrong Input");
     }
 }
コード例 #2
0
        private void BtnLoginGuestRequest_Click(object sender, RoutedEventArgs e)
        {
            GuestRequestFirstWindow s = new GuestRequestFirstWindow();

            //s.Height = (System.Windows.SystemParameters.PrimaryScreenHeight * 0.89);
            //s.Width = (System.Windows.SystemParameters.PrimaryScreenWidth * 0.89);
            s.Show();
        }