Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            List <User> users = Helpers.HelperUser.GetList();

            foreach (var item in users)
            {
                if (item.UserName == textBox1.Text && item.Password != textBox2.Text)
                {
                    label3.Text = "Parolayı yanlış girdiniz.";
                }
                else if (item.UserName != textBox1.Text && item.Password == textBox2.Text)
                {
                    label3.Text = "Kullanıcı adını yanlış girdiniz.";
                }
                else if (item.UserName == textBox1.Text && item.Password == textBox2.Text)
                {
                    Anasayfa form2 = new Anasayfa(item);
                    this.Hide();
                    form2.Show();
                }
            }
            label3.Text = "Kullanıcı adını ve parolayı yanlış girdiniz.";
        }
Example #2
0
        private void Salon_FormClosed(object sender, FormClosedEventArgs e)
        {
            Anasayfa anasayfa = (Anasayfa)Application.OpenForms["Anasayfa"];

            anasayfa.RefreshHalls();
        }