Files

43 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
namespace AyaNovaOL
{
public partial class About : Form
{
public About()
{
InitializeComponent();
}
private void About_Load(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
Assembly a = Assembly.GetExecutingAssembly();
sb.Append("AyaNova® OLI ");
sb.Append(GZTW.AyaNova.BLL.AyaBizUtils.DisplayVersion(a.GetName().Version));
sb.Append("\r\n");
System.Diagnostics.FileVersionInfo fileVersion = System.Diagnostics.FileVersionInfo.GetVersionInfo(a.Location);
int nHotFix = fileVersion.FileBuildPart;
if (nHotFix > 0)
sb.AppendLine("(Patch " + nHotFix.ToString() + ")");
sb.Append("Copyright © 1999-2022 Ground Zero Tech-Works Inc.\r\n");
sb.Append("All rights reserved\r\n");
lblCopyRight.Text = sb.ToString();
}
private void btnOK_Click(object sender, EventArgs e)
{
Close();
}
}
}