using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using System.Media;

namespace PlaySystemSounds
{
    public partial class frm80PlaySystemSounds : Form
    {
        public frm80PlaySystemSounds()
        {
            InitializeComponent();
        }

        // Add icons to the buttons.
        private void frm80PlaySystemSounds_Load(object sender, EventArgs e)
        {
            asteriskButton.Image = SystemIcons.Asterisk.ToBitmap();
            beepButton.Image = SystemIcons.Error.ToBitmap();
            exclamationButton.Image = SystemIcons.Exclamation.ToBitmap();
            handButton.Image = SystemIcons.Hand.ToBitmap();
            questionButton.Image = SystemIcons.Question.ToBitmap();
            consoleBeepButton.Image = SystemIcons.Application.ToBitmap();
        }

        private void asteriskButton_Click(object sender, EventArgs e)
        {
            SystemSounds.Asterisk.Play();
        }

        private void beepButton_Click(object sender, EventArgs e)
        {
            SystemSounds.Beep.Play();
        }

        private void exclamationButton_Click(object sender, EventArgs e)
        {
            SystemSounds.Exclamation.Play();
        }

        private void handButton_Click(object sender, EventArgs e)
        {
            SystemSounds.Hand.Play();
        }

        private void questionButton_Click(object sender, EventArgs e)
        {
            SystemSounds.Question.Play();
        }

        private void consoleBeepButton_Click(object sender, EventArgs e)
        {
            Console.Beep();
        }


        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.consoleBeepButton = new System.Windows.Forms.Button();
            this.questionButton = new System.Windows.Forms.Button();
            this.handButton = new System.Windows.Forms.Button();
            this.exclamationButton = new System.Windows.Forms.Button();
            this.beepButton = new System.Windows.Forms.Button();
            this.asteriskButton = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // consoleBeepButton
            // 
            this.consoleBeepButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.consoleBeepButton.Location = new System.Drawing.Point(264, 57);
            this.consoleBeepButton.Name = "consoleBeepButton";
            this.consoleBeepButton.Size = new System.Drawing.Size(120, 40);
            this.consoleBeepButton.TabIndex = 11;
            this.consoleBeepButton.Text = "Console.Beep";
            this.consoleBeepButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.consoleBeepButton.UseVisualStyleBackColor = true;
            this.consoleBeepButton.Click += new System.EventHandler(this.consoleBeepButton_Click);
            // 
            // questionButton
            // 
            this.questionButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.questionButton.Location = new System.Drawing.Point(138, 57);
            this.questionButton.Name = "questionButton";
            this.questionButton.Size = new System.Drawing.Size(120, 40);
            this.questionButton.TabIndex = 10;
            this.questionButton.Text = "Question";
            this.questionButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.questionButton.UseVisualStyleBackColor = true;
            this.questionButton.Click += new System.EventHandler(this.questionButton_Click);
            // 
            // handButton
            // 
            this.handButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.handButton.Location = new System.Drawing.Point(12, 57);
            this.handButton.Name = "handButton";
            this.handButton.Size = new System.Drawing.Size(120, 40);
            this.handButton.TabIndex = 9;
            this.handButton.Text = "Hand";
            this.handButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.handButton.UseVisualStyleBackColor = true;
            this.handButton.Click += new System.EventHandler(this.handButton_Click);
            // 
            // exclamationButton
            // 
            this.exclamationButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.exclamationButton.Location = new System.Drawing.Point(264, 11);
            this.exclamationButton.Name = "exclamationButton";
            this.exclamationButton.Size = new System.Drawing.Size(120, 40);
            this.exclamationButton.TabIndex = 8;
            this.exclamationButton.Text = "Exclamation";
            this.exclamationButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.exclamationButton.UseVisualStyleBackColor = true;
            this.exclamationButton.Click += new System.EventHandler(this.exclamationButton_Click);
            // 
            // beepButton
            // 
            this.beepButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.beepButton.Location = new System.Drawing.Point(138, 11);
            this.beepButton.Name = "beepButton";
            this.beepButton.Size = new System.Drawing.Size(120, 40);
            this.beepButton.TabIndex = 7;
            this.beepButton.Text = "Beep";
            this.beepButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.beepButton.UseVisualStyleBackColor = true;
            this.beepButton.Click += new System.EventHandler(this.beepButton_Click);
            // 
            // asteriskButton
            // 
            this.asteriskButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.asteriskButton.Location = new System.Drawing.Point(12, 11);
            this.asteriskButton.Name = "asteriskButton";
            this.asteriskButton.Size = new System.Drawing.Size(120, 40);
            this.asteriskButton.TabIndex = 6;
            this.asteriskButton.Text = "Asterisk";
            this.asteriskButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.asteriskButton.UseVisualStyleBackColor = true;
            this.asteriskButton.Click += new System.EventHandler(this.asteriskButton_Click);
            // 
            // frm80PlaySystemSounds
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(397, 109);
            this.Controls.Add(this.consoleBeepButton);
            this.Controls.Add(this.questionButton);
            this.Controls.Add(this.handButton);
            this.Controls.Add(this.exclamationButton);
            this.Controls.Add(this.beepButton);
            this.Controls.Add(this.asteriskButton);
            this.Name = "frm80PlaySystemSounds";
            this.Text = "PlaySystemSounds";
            this.Load += new System.EventHandler(this.frm80PlaySystemSounds_Load);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Button consoleBeepButton;
        private System.Windows.Forms.Button questionButton;
        private System.Windows.Forms.Button handButton;
        private System.Windows.Forms.Button exclamationButton;
        private System.Windows.Forms.Button beepButton;
        private System.Windows.Forms.Button asteriskButton;
    }
}