Пример #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);
        }
Пример #3
0
 private async void LookCafes_Load(object sender, EventArgs e)
 {
     cafeF     = this;
     this.Text = "CafesUA List " + Form1.login + " (User)";
     await loadLst();
 }
Пример #4
0
 private void LookCafes_Load(object sender, EventArgs e)
 {
     cafeF     = this;
     this.Text = "CafesUA List " + Form1.login + " (User)";
 }