Beispiel #1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            usernae = username.Text;
            passwod = passwordtext.Text;
            if (usernae == "" || passwod == "")
            {
                MessageBox.Show("pls enter username and password");
                return;
            }
            try
            {
                FinalmouseAPI API   = new FinalmouseAPI(null, usernae, passwod);
                Keyopener     formm = new Keyopener();
                formm.API = API;
                formm.Refresh2();
                API.meAPI();
                this.Hide();
                formm.Show();
            }
            catch (Exception exception)
            {
                MessageBox.Show("couldn't login\nto see full error click alt+shift and okay");

                if (Keyboard.IsKeyDown(Key.LeftShift) && Keyboard.IsKeyDown(Key.LeftAlt))
                {
                    throw;
                }
            }
        }