77 lines
2.5 KiB
C#
77 lines
2.5 KiB
C#
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace StarfaceOutlookSync.UI
|
|
{
|
|
public class AboutForm : Form
|
|
{
|
|
public AboutForm()
|
|
{
|
|
Text = "Info";
|
|
Size = new Size(360, 280);
|
|
FormBorderStyle = FormBorderStyle.FixedDialog;
|
|
MaximizeBox = false;
|
|
MinimizeBox = false;
|
|
StartPosition = FormStartPosition.CenterParent;
|
|
Font = new Font("Segoe UI", 9);
|
|
BackColor = Color.White;
|
|
|
|
var lblProduct = new Label
|
|
{
|
|
Text = "Outlook-SYNC \u2194 Starface",
|
|
Left = 0, Top = 24, Width = 340, Height = 30,
|
|
TextAlign = ContentAlignment.MiddleCenter,
|
|
Font = new Font("Segoe UI", 14, FontStyle.Bold),
|
|
ForeColor = Color.FromArgb(0, 120, 212)
|
|
};
|
|
|
|
var lblVersion = new Label
|
|
{
|
|
Text = "Version 0.0.0.17",
|
|
Left = 0, Top = 56, Width = 340, Height = 20,
|
|
TextAlign = ContentAlignment.MiddleCenter,
|
|
ForeColor = Color.Gray
|
|
};
|
|
|
|
var separator = new Label
|
|
{
|
|
Left = 40, Top = 86, Width = 260, Height = 1,
|
|
BorderStyle = BorderStyle.Fixed3D
|
|
};
|
|
|
|
var lblCompany = new Label
|
|
{
|
|
Text = "HackerSoft",
|
|
Left = 0, Top = 100, Width = 340, Height = 24,
|
|
TextAlign = ContentAlignment.MiddleCenter,
|
|
Font = new Font("Segoe UI", 11, FontStyle.Bold)
|
|
};
|
|
|
|
var lblSubtitle = new Label
|
|
{
|
|
Text = "Hacker-Net Telekommunikation",
|
|
Left = 0, Top = 124, Width = 340, Height = 20,
|
|
TextAlign = ContentAlignment.MiddleCenter,
|
|
ForeColor = Color.Gray
|
|
};
|
|
|
|
var lblAddress = new Label
|
|
{
|
|
Text = "Stefan Hacker\r\nAm Wunderburgpark 5b\r\n26135 Oldenburg",
|
|
Left = 0, Top = 152, Width = 340, Height = 56,
|
|
TextAlign = ContentAlignment.MiddleCenter,
|
|
ForeColor = Color.FromArgb(96, 94, 92)
|
|
};
|
|
|
|
var btnOk = new Button
|
|
{
|
|
Text = "OK", Left = 130, Top = 212, Width = 80, Height = 28,
|
|
DialogResult = DialogResult.OK
|
|
};
|
|
|
|
Controls.AddRange(new Control[] { lblProduct, lblVersion, separator, lblCompany, lblSubtitle, lblAddress, btnOk });
|
|
AcceptButton = btnOk;
|
|
}
|
|
}
|
|
}
|