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;

namespace ch6_8
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        SimpleTime t1 = new SimpleTime();
        SimpleTime t2 = new SimpleTime(2);
        SimpleTime t3 = new SimpleTime(21, 343);
        SimpleTime t4 = new SimpleTime(12, 25, 42);

        private void button1_Click(object sender, EventArgs e)
        {
            label1 .Text  = "Construced with " +
                "\n t1:  all argument defaulted " +
                "\n " + t1.ToUniversalString() +
                "\n " + t1.ToStandardString();

            label1.Text += "\n\n Construced with " +
                "\n t2: hour specified and other default  " +
                "\n\t\t " + t2.ToUniversalString() +
                "\n\t\t " + t2.ToStandardString();

            label1.Text += "\n\n Construced with " +
                "\n t3: hour, and minute  specified  " +
                "\n\t\t " + t3.ToUniversalString() +
                "\n\t\t " + t3.ToStandardString();

            label1.Text += "\n\n Construced with " +
                "\n t4: all specified " +
                "\n " + t4.ToUniversalString() +
                "\n " + t4.ToStandardString();
        }
    }
}
