/// <summary> /// Initializes a new instance of the <see cref="AboutDialog"/> class. /// </summary> public AboutDialog() { InitializeComponent(); AssemblyInfo executingAssembly = AssemblyInfo.ExecutingAssembly; SetCompanyUrl("http://www.gridprotectionalliance.org/"); SetCompanyLogo(executingAssembly.GetEmbeddedResource("GSF.Windows.Forms.Logo.bmp")); SetCompanyDisclaimer(executingAssembly.GetEmbeddedResource("GSF.Windows.Forms.Disclaimer.txt")); }
/// <summary> /// Get the header file template /// </summary> private string GetPluginH() { var pluginH = AssemblyInfo.GetEmbeddedResource("plugin_main.h"); pluginH = AddPreamble(pluginH, false); return(pluginH); }
/// <summary> /// Get the C++ file template /// </summary> private string GetPluginCpp() { var pluginCpp = AssemblyInfo.GetEmbeddedResource("plugin_main.cpp"); pluginCpp = AddPreamble(pluginCpp, true); return(pluginCpp); }
/// <summary> /// Expand certain includes /// </summary> private string ExpandIncludes(string content) { var pluginH = AssemblyInfo.GetEmbeddedResource("plugin.h"); pluginH = pluginH.Substring(pluginH.IndexOf("#pragma once") + "#pragma once".Length); content = content.Replace("#include \"bifrost/api/plugin.h\"", pluginH); var pluginFwdH = AssemblyInfo.GetEmbeddedResource("plugin_fwd.h"); content = content.Replace("#include \"bifrost/template/plugin_fwd.h\"", pluginFwdH); return(content); }
private void SplashScreen_Load(object sender, EventArgs e) { AssemblyInfo assembly = EntryAssembly; // Load splash screen image MainLayoutPanel.BackgroundImage = new Bitmap(assembly.GetEmbeddedResource($"{nameof(ConnectionTester)}.SplashScreen.png")); // Set up the dialog text at runtime according to the application's assembly information ApplicationTitle.Text = assembly.Title; { Version version = assembly.Version; Version.Text = $"Version {version.Major}.{version.Minor}.{version.Build}"; // & "." & .Revision } #if DEBUG Version.Text += $"{Environment.NewLine}DEBUG VERSION - DO NOT DEPLOY"; #endif Copyright.Text = assembly.Copyright; }