コード例 #1
0
ファイル: addbalance.cs プロジェクト: gokselsina/atlas
        private void PictureBox11_Click(object sender, EventArgs e)
        {
            saloon saloon = new saloon();

            saloon.Show();
            this.Hide();
        }
コード例 #2
0
ファイル: addbalance.cs プロジェクト: gokselsina/atlas
        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
ファイル: login.cs プロジェクト: gokselsina/atlas
 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;
         }
     }
 }