using System; using System.Windows.Forms; using FastReport.Utils; using System.Globalization; using FastReport.Editor; using System.Drawing; namespace FastReport.Forms { internal partial class AboutForm : BaseDialogForm { private void label5_Click(object sender, EventArgs e) { ProcessHelper.StartProcess(label5.Text); } private void AboutForm_Shown(object sender, EventArgs e) { } private void AboutForm_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Escape) DialogResult = DialogResult.Cancel; } public override void Localize() { base.Localize(); MyRes res = new MyRes("Forms,About"); Text = res.Get(""); #if WPF label1.Text = "FastReport.WPF"; #elif AVALONIA label1.Text = "FastReport.Avalonia"; #elif MONO label1.Text = "FastReport.Mono"; #endif label2.Text = res.Get("Version") + " " + Config.Version #if Demo + " " + typeof(DataBand).Name[0].ToString() + typeof(Exception).Name[3].ToString() + typeof(Math).Name[0].ToString().ToLower() + typeof(Object).Name[0].ToString().ToLower() #endif #if TIMETRIAL + " " + typeof(Timer).Name[0].ToString() + typeof(Timer).Name[4].ToString() + typeof(Timer).Name[1].ToString() + typeof(Math).Name[1].ToString() + typeof(ListBox).Name[0].ToString().ToLower() #endif #if Academic + " " + typeof(AboutForm).Name[0].ToString() + typeof(Char).Name[0].ToString().ToLower() + typeof(Char).Name[2].ToString() + typeof(DataFormats).Name[0].ToString().ToLower() + typeof(Exception).Name[0].ToString().ToLower() + typeof(Math).Name[0].ToString().ToLower() + typeof(Exception).Name[6].ToString() + typeof(Char).Name[0].ToString().ToLower() #endif #if COMMUNITY + "\nCommunity Edition" #endif ; string company; if (CultureInfo.CurrentCulture.Name == "ru-RU") { company = " ООО Быстрые отчеты"; label5.Text = "https://быстрыеотчеты.рф"; } else { company = " Fast Reports Inc."; label5.Text = "https://www.fast-report.com"; } label3.Text = "© 2008-" + DateTime.Now.Year.ToString() + company; label4.Text = res.Get("Visit"); } public override void UpdateDpiDependencies() { base.UpdateDpiDependencies(); #if AVALONIA this.ClientSize = this.LogicalToDevice(new Size(340, 225)); #endif btnOk.Left = (ClientSize.Width - btnOk.Width) / 2; label1.Font = this.LogicalToDevice(new Font(label1.Font.FontFamily, 15.75f, label1.Font.Style)); label2.Font = this.LogicalToDevice(new Font(label2.Font.FontFamily, 8F, FontStyle.Bold)); label5.Font = this.LogicalToDevice(new Font(label5.Font.FontFamily, 8F, FontStyle.Underline)); label3.Width = label4.Width = label5.Width = labelLine1.Width = ClientSize.Width; pictureBox1.Image = this.GetImage(CultureInfo.CurrentCulture.Name == "ru-RU" ? "bo.png" : "fr.png"); } public AboutForm() { InitializeComponent(); Localize(); UpdateDpiDependencies(); UIUtils.CheckRTL(this); } } }