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 BtnLoginManager_Click(object sender, RoutedEventArgs e)
        {
            WebsiteManagerFirstWindow s = new WebsiteManagerFirstWindow();

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