Пример #1
0
        private void PictureBox11_Click(object sender, EventArgs e)
        {
            saloon saloon = new saloon();

            saloon.Show();
            this.Hide();
        }
Пример #2
0
        private void PictureBox2_Click(object sender, EventArgs e)
        {
            con.Open();
            SqlCommand cmd = new SqlCommand("UPDATE user_info SET balance=balance+" + textBox5.Text + " WHERE id='" + login.id + "'", con);

            cmd.ExecuteNonQuery();
            con.Close();
            saloon saloon = new saloon();

            saloon.Show();
            this.Hide();
        }
Пример #3
0
 private void Button2_Click(object sender, EventArgs e)
 {
     if (textBox2.Text.Contains("=") == true)
     {
         MessageBox.Show("Incorrect character entered");
         textBox2.Clear();
     }
     else
     {
         if (password == textBox2.Text)
         {
             saloon saloon = new saloon();
             saloon.Show();
             this.Hide();
         }
         else
         {
             MessageBox.Show("Incorrect password");
             textBox2.Clear();
             button3.Visible = true;
         }
     }
 }