private void button1_Click(object sender, EventArgs e) { String login = textBox1.Text; String password = textBox2.Text; if (login == "admin" & password == "1234") { FluentDesignForm1 form2 = new FluentDesignForm1(); textBox1.Text = ""; textBox2.Text = ""; form2.Show(); } else { MessageBox.Show("Неправильні облікові дані\n(логін і пароль зліва під зображеннями)", "Невірно!", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void button1_Click(object sender, EventArgs e) { FluentDesignForm1 fluentDesignForm1 = new FluentDesignForm1(); fluentDesignForm1.Show(); }