You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.8 KiB
60 lines
1.8 KiB
3 months ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.ComponentModel;
|
||
|
using System.Data;
|
||
|
using System.Drawing;
|
||
|
using System.Linq;
|
||
|
using System.Reflection;
|
||
|
using System.Text;
|
||
|
using System.Threading.Tasks;
|
||
|
using System.Windows.Forms;
|
||
|
|
||
|
namespace BiskLog_Point_Of_Sale.Mains
|
||
|
{
|
||
|
public partial class AboutBISKI : Form
|
||
|
{
|
||
|
public AboutBISKI()
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
this.Versionlabel.Text = String.Format("Version {0}", AssemblyVersion);
|
||
|
this.copyrightlabel.Text = AssemblyCopyright;
|
||
|
this.textBoxDescription.Text = AssemblyDescription;
|
||
|
}
|
||
|
public string AssemblyDescription
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
|
||
|
if (attributes.Length == 0)
|
||
|
{
|
||
|
return "";
|
||
|
}
|
||
|
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
|
||
|
}
|
||
|
}
|
||
|
public string AssemblyVersion
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||
|
}
|
||
|
}
|
||
|
public string AssemblyCopyright
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
|
||
|
if (attributes.Length == 0)
|
||
|
{
|
||
|
return "";
|
||
|
}
|
||
|
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
|
||
|
}
|
||
|
}
|
||
|
private void MagicButton1_Click(object sender, EventArgs e)
|
||
|
{
|
||
|
this.Close();
|
||
|
}
|
||
|
}
|
||
|
}
|