public AboutBox() { InitializeComponent(); Icon = Program.AppIcon; Text = "About " + AssemblyUtilities.GetDescription(); labelProductName.Text = AssemblyUtilities.GetDescription(); labelVersion.Text = "Version " + AssemblyUtilities.GetInformationalVersion(); labelCopyright.Text = AssemblyUtilities.GetCopyright(); labelCompanyName.Text = AssemblyUtilities.GetCompany(); }
public Asm(Assembly asm) { Name = asm.FullName; if (!AssemblyUtilities.IsDynamic(asm)) { try { Location = asm.Location; } catch { // do nothing } } if (string.IsNullOrEmpty(Location)) { Location = " "; } AssemblyFileVersionAttribute vatt = AssemblyUtilities.GetAttribute <AssemblyFileVersionAttribute>(asm); if (vatt != null) { Version = vatt.Version; } else { AssemblyVersionAttribute att = AssemblyUtilities.GetAttribute <AssemblyVersionAttribute>(asm); if (att != null) { Version = att.Version; } } InformationalVersion = AssemblyUtilities.GetInformationalVersion(asm); if (string.IsNullOrEmpty(Version)) { Version = InformationalVersion; } CompileDate = AssemblyUtilities.GetLinkerTimestamp(asm); }
public Main() { InitializeComponent(); Icon = Program.AppIcon; AddLog("ShellBoost Samples - Drive Local Folder - V" + AssemblyUtilities.GetInformationalVersion() + " Copyright (C) 2017-" + DateTime.Now.Year + " Aelyo Softworks. All rights reserved."); AddLog("ShellBoost Runtime Version " + typeof(ShellContext).Assembly.GetInformationalVersion()); if (!Settings.HasSecretsFile) { AddLog(); AddLog("! Google Drive secrets file is not present. Please select the 'File / Configure Secrets File' menu item to install it."); return; } if (!OnDemandLocalFileSystem.IsSupported) { AddLog(); AddLog("! File On-Demand technology is not available on this version of Windows. You need Windows 10, version 1709 or higher."); return; } AddLog(); }