Exemple #1
0
        /// <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"));
        }
Exemple #2
0
        /// <summary>
        /// Get the header file template
        /// </summary>
        private string GetPluginH()
        {
            var pluginH = AssemblyInfo.GetEmbeddedResource("plugin_main.h");

            pluginH = AddPreamble(pluginH, false);
            return(pluginH);
        }
Exemple #3
0
        /// <summary>
        /// Get the C++ file template
        /// </summary>
        private string GetPluginCpp()
        {
            var pluginCpp = AssemblyInfo.GetEmbeddedResource("plugin_main.cpp");

            pluginCpp = AddPreamble(pluginCpp, true);
            return(pluginCpp);
        }
Exemple #4
0
        /// <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);
        }
Exemple #5
0
    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;
    }