private void Button1_Click(object sender, EventArgs e) { if (textBox1.Text != "" && textBox2.Text != "") { Form2.ShutdownLegacy(Form2.DataGrid_IP, ShutdownFlags.LegacyForcedShutdown, textBox1.Text, textBox2.Text, "No Comments"); this.Close(); } else { MessageBox.Show("Enter les Infomations d'authetification !"); } }
private void Button1_Click(object sender, EventArgs e) { if (textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "") { if (radioButton1.Checked) { Form2.ShutdownLegacy(textBox1.Text, ShutdownFlags.LegacyForcedShutdown, textBox2.Text, textBox3.Text, "No Comments"); this.Close(); } else if (radioButton2.Checked) { Form2.ShutdownLegacy(textBox1.Text, ShutdownFlags.LegacyForcedShutdown, textBox2.Text, textBox3.Text, "No Comments"); this.Close(); } else { MessageBox.Show("Selectionner Un Type de ShutDown !"); } } else { MessageBox.Show("Inserer Les Donnés !"); } }