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.
182 lines
6.7 KiB
182 lines
6.7 KiB
using System; |
|
using System.Collections.Generic; |
|
using System.ComponentModel; |
|
using System.Drawing; |
|
using System.Linq; |
|
using System.Reflection; |
|
using System.Threading.Tasks; |
|
using System.Windows.Forms; |
|
using UTIL; |
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement; |
|
|
|
namespace AB |
|
{ |
|
partial class AboutBox1 : Form |
|
{ |
|
int sw = 0; |
|
#region Комментарий |
|
|
|
public String comment = |
|
"v.1.1.1.56" + "\r\n" + |
|
" - Добавлен класс MESS для системных сообщений/команд (без данных)." + "\r\n" + |
|
"v.1.1.1.55" + "\r\n" + |
|
" - Первая работающая (надеюсь) сборка под новый ПИВ." + "\r\n" + |
|
"v.1.1.0.51" + "\r\n" + |
|
" - Первая сборка под новый ПИВ." + "\r\n" + |
|
"v.1.0.5.50" + "\r\n" + |
|
" - Походу, крайняя версия под старый ПИВ." + "\r\n" + |
|
" - Полезли непонятные глюки с выводом статистики на статусбар. Выкинул, заменил на простые метки. Не так красиво, но глюки ушли." + "\r\n" + |
|
"v.1.0.5.37" + "\r\n" + |
|
" - Переделан прием RS. Работает быстрее." + "\r\n" + |
|
"v.1.0.5.34" + "\r\n" + |
|
" - В вывод картинки на экран добавлена замазка (закрашивает пропущенные строки)." + "\r\n" + |
|
" - Добавлена функция пропуска дефектных кадров (включено по умолчанию." + "\r\n" + |
|
" - Опять переделан прием UDP. Вариант 3-й, надеюсь, последний. Работает быстрее и надежнее." + "\r\n" + |
|
"v.1.0.4.21" + "\r\n" + |
|
" - Опять переделан прием. Проверить не на чем." + "\r\n" + |
|
"v.1.0.3.13" + "\r\n" + |
|
" - Временно бросаю прием, перехожу на АС." + "\r\n" + |
|
" - Прием UDP заработал лучше (переделка на очереди)." + "\r\n" + |
|
"v.1.0.2.8" + "\r\n" + |
|
" - Прием UDP заработал." + "\r\n" + |
|
"v.1.0.1.6" + "\r\n" + |
|
" - Релиз версии без приема UDP." + "\r\n" + |
|
" - Прием и передача данных не зависит от номера порта." + "\r\n" + |
|
"v.1.0.0.4" + "\r\n" + |
|
" - Исправлены парочка мелких ошибок. Теперь данные в БОН пересылаются корректно." + "\r\n" + |
|
"v.1.0.0.3" + "\r\n" + |
|
" - Заработала отправка измененных данных в БОН." + "\r\n" + |
|
" - Устранено несколько косяков. И добавлены новые... Пока не найдены." + "\r\n" + |
|
"v.1.0.0.2" + "\r\n" + |
|
" - Добавлена панель с информацией, полученной ПУ" + "\r\n" + |
|
" - Добавлена панель с вкладками. На второй вкладке ручной ввод навигационной информации" + "\r\n" + |
|
" - Сделано чтение информации из пакетов от БОН и отправка измененных данных в БОН" + "\r\n" + |
|
"v.1.0.0.0" + "\r\n" + |
|
" - Индикация обмена по шине RS-485" + "\r\n" + |
|
""; |
|
#endregion |
|
public string ccc = ""; |
|
public AboutBox1(String comm) |
|
{ |
|
InitializeComponent(); |
|
this.Text = String.Format("О программе {0}", ASMBL.AssemblyTitle); |
|
this.labelProductName.Text = ASMBL.AssemblyProduct; |
|
this.labelVersion.Text = String.Format("Версия {0}", ASMBL.AssemblyVersion); |
|
this.labelCopyright.Text = ASMBL.AssemblyCopyright; |
|
this.labelCompanyName.Text = ASMBL.AssemblyCompany; |
|
this.label1.Text = ASMBL.AssemblyDescription; |
|
// this.textBoxDescription.Text = comment; |
|
this.textBoxDescription.Text = comm; |
|
} |
|
/* |
|
#region Методы доступа к атрибутам сборки |
|
|
|
public string AssemblyTitle |
|
{ |
|
get |
|
{ |
|
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false); |
|
if (attributes.Length > 0) |
|
{ |
|
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0]; |
|
if (titleAttribute.Title != "") |
|
{ |
|
return titleAttribute.Title; |
|
} |
|
} |
|
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase); |
|
} |
|
} |
|
|
|
public string AssemblyVersion |
|
{ |
|
get |
|
{ |
|
return Assembly.GetExecutingAssembly().GetName().Version.ToString(); |
|
} |
|
} |
|
|
|
public string AssemblyDescription |
|
{ |
|
get |
|
{ |
|
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false); |
|
if (attributes.Length == 0) |
|
{ |
|
return ""; |
|
} |
|
return ((AssemblyDescriptionAttribute)attributes[0]).Description; |
|
} |
|
} |
|
|
|
public string AssemblyProduct |
|
{ |
|
get |
|
{ |
|
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false); |
|
if (attributes.Length == 0) |
|
{ |
|
return ""; |
|
} |
|
return ((AssemblyProductAttribute)attributes[0]).Product; |
|
} |
|
} |
|
|
|
public string AssemblyCopyright |
|
{ |
|
get |
|
{ |
|
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); |
|
if (attributes.Length == 0) |
|
{ |
|
return ""; |
|
} |
|
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright; |
|
} |
|
} |
|
|
|
public string AssemblyCompany |
|
{ |
|
get |
|
{ |
|
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false); |
|
if (attributes.Length == 0) |
|
{ |
|
return ""; |
|
} |
|
return ((AssemblyCompanyAttribute)attributes[0]).Company; |
|
} |
|
} |
|
#endregion |
|
|
|
*/ |
|
private void AboutBox1_Load(object sender, EventArgs e) |
|
{ |
|
Util.SetTabWidth(textBoxDescription, 1); |
|
} |
|
|
|
private void logoPictureBox_MouseEnter(object sender, EventArgs e) |
|
{ |
|
timer1.Enabled = true; |
|
} |
|
|
|
private void logoPictureBox_MouseLeave(object sender, EventArgs e) |
|
{ |
|
timer1.Enabled = false; |
|
} |
|
|
|
private void timer1_Tick(object sender, EventArgs e) |
|
{ |
|
if (sw == 0) |
|
{ |
|
logoPictureBox.Image = imageList1.Images[sw]; |
|
sw = 1; |
|
} |
|
else |
|
{ |
|
logoPictureBox.Image = imageList1.Images[sw]; |
|
sw = 0; |
|
} |
|
} |
|
} |
|
}
|
|
|