private void LoginButtonOnClick(object sender, RoutedEventArgs e) { if (textBoxEmail.Text.Length == 0) { errormessage.Text = "Enter an email."; textBoxEmail.Focus(); } else { DataTable dt = new DataTable(); sensorChooser.Stop(); Person per = new Person(); per.UName = textBoxEmail.Text; per.PPassword = passwordBox1.Password; dt = per.Login(per); if (dt.Rows.Count > 0) { CharacterSelection cs = new CharacterSelection(); cs.Show(); this.Close(); //Process[] proc = Process.GetProcessesByName("osk"); // proc[0].Kill(); } else { errormessage.Text = "Invalid Email && Password "; } } }
private void KinectTileButton_Click_7(object sender, RoutedEventArgs e) { sensorChooser.Stop(); CharacterSelection cs = new CharacterSelection(); cs.Show(); this.Close(); }