//Currently used to do manual SQL commands from program. private void SearchText_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { if (SearchText.Text.Equals("send")) { Messenger m = new Messenger(); m.sendSelect("SELECT * FROM `keys`;", "keys"); } else { Messenger m = new Messenger(); string[] parsed = SearchText.Text.Split(';'); string username = parsed[0]; string password = parsed[1]; if (m.login(username, password)) SearchText.Text = "Logged in."; else SearchText.Text = "Invalid."; //m.test(); } // SearchText.Text = ""; } }