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.Reflection;
using System.IO;

using CommonLib.Windows.Forms;

namespace All_Purpose_Auto_Setup
{
   public partial class frmAbout : ChildForm
   {
      public frmAbout()
      {
         InitializeComponent();

         Version appVersion = Assembly.GetExecutingAssembly().GetName().Version;

         DateTime buildDate = File.GetCreationTime(Assembly.GetExecutingAssembly().Location);

         lblDescription.Text = "Version: " + appVersion.Major.ToString() + "." + appVersion.Minor.ToString() + "\n";
         lblDescription.Text += "Last update: " + buildDate.ToString() + "\n";

         lblAuthor.Text = "Developer: Duc Le";
      }

      private void btnOK_Click(object sender, EventArgs e)
      {
         this.Close();
      }
   }
}
