예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            LookCafes cafeForm = new LookCafes();

            cafeForm.ControlBox = true;
            cafeForm.Activate();
            cafeForm.Show();
            this.Hide();
        }
예제 #2
0
        async Task <int> Login()
        {
            Request req = new Request();

            string[] parseAnswer = req.loginUser(loginBox.Text, passBox.Text);
            label3.Text = parseAnswer[0] + " " + parseAnswer[1];
            if (parseAnswer[0].Contains("OK"))
            {
                login = loginBox.Text;
                token = parseAnswer[1];
                LookCafes cafeForm = new LookCafes();
                cafeForm.ControlBox = true;
                cafeForm.Activate();
                cafeForm.Show();
                this.Hide();
            }
            //Console.WriteLine(parseAnswer[0]);
            //Console.WriteLine('\n');
            //Console.WriteLine(parseAnswer[1]);
            return(1);
        }