private void BtnLoginHost_Click(object sender, RoutedEventArgs e) { bool ok = true; //foreach (BE.Host item in bl.getAllHostsList()) //{ // if ((hostUserNameTextBox.Text == item.UserName) && (hostPasswordTextBox.Text == item.Password)) // { // ok = true; // BE.Configuration.CurrentHost = item; // } //} if (ok) { HostingUnitFirstWindow s = new HostingUnitFirstWindow(); //s.Height = (System.Windows.SystemParameters.PrimaryScreenHeight * 0.89); //s.Width = (System.Windows.SystemParameters.PrimaryScreenWidth * 0.89); s.Show(); } else { MessageBox.Show("Wrong input"); } }
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"); } }