Pro výukové účely na SPŠ Zlín
vytvořil RNDr.Vladimír Vaščák

Hlášení
  1. using System.Diagnostics;
  1. Forms.Button button1;
  2. Forms.Button button2;
  3. Forms.Button button3;

  1. private void button1_Click(object sender, EventArgs e) {
  2. MessageBox.Show("Vytvořeno pro www.spszl.cz", "Seminář informatiky", MessageBoxButtons.OK, MessageBoxIcon.Information);
  3. }
  4.  
  5. private void button2_Click(object sender, EventArgs e) {
  6. if (MessageBox.Show("Chcete provést akci ?", "Seminář informatiky", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) {
  7. MessageBox.Show("Akce byla potvrzena", "Seminář informatiky", MessageBoxButtons.OK,
  8. MessageBoxIcon.Information);
  9. } else {
  10. MessageBox.Show("Akce byla zrušena", "Správce procesu", MessageBoxButtons.OK,
  11. MessageBoxIcon.Information);
  12. }
  13. }
  14.  
  15. private void button3_Click(object sender, EventArgs e) {
  16. Process.Start(new ProcessStartInfo {FileName = "https://www.vascak.cz", UseShellExecute = true});
  17. }

Uložit