コード例 #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            Meniu f = new Meniu();

            f.Show();
            this.Hide();
        }
コード例 #2
0
ファイル: Test.cs プロジェクト: kms77/Personal-Projects
        private void AskPermission()
        {
            DialogResult dialog = MessageBox.Show("Vrei să ieși ?", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dialog == DialogResult.Yes)
            {
                Meniu f = new Meniu();
                f.Show();
                this.Hide();
            }
        }
コード例 #3
0
 private void Button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "user" && textBox2.Text == "parola")
     {
         Meniu f = new Meniu();
         f.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Username sau parolă greșită !", "Eroare", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     textBox1.Text = "";
     textBox2.Text = "";
 }
コード例 #4
0
        private void AskPermission(object sender, FormClosingEventArgs e)
        {
            DialogResult dialog = MessageBox.Show("Ești sigur că vrei să ieși ?", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dialog == DialogResult.Yes)
            {
                Meniu f = new Meniu();
                f.Show();
                this.Hide();
            }
            else
            {
                if (Haveimage)
                {
                    isActive = true;
                }
            }
        }