Esempio n. 1
0
        internal static int Main(string[] args)
        {
            MiniDump.DumpMessage += MiniDump_DumpMessage;

            // MiniDump.DumpFailed += MiniDump_DumpFailed;
            GitInformation.ApplyAssemblyAttributes(typeof(Els_kom_Main).Assembly);

            // _ = Assembly.GetEntryAssembly().GetCustomAttributes(false);
            KOMManager.MessageEvent        += KOMManager_MessageEvent;
            PluginUpdateCheck.MessageEvent += PluginUpdateCheck_MessageEvent;

            // have to pass in string to this as otherwise it will not compile.
            GenericPluginLoader <string> .PluginLoaderMessage += GenericPluginLoader_PluginLoaderMessage;

            // execute our attribute.
            // uncomment if the attribute is on the assembly:
            // Assembly.GetEntryAssembly().GetCustomAttributes(false);
            // or:
            // typeof(TheClassWithTheAttribute).Assembly.GetCustomAttributes(false);
            // uncomment if the attribute is on the class:
            // Assembly.GetEntryAssembly().EntryPoint.ReflectedType.GetCustomAttributes(false);
            // or:
            // typeof(TheClassWithTheAttribute).GetCustomAttributes(false);
            // uncomment if you want the attribute on the class:
            // Assembly.GetEntryAssembly().EntryPoint.GetCustomAttributes(false);
            // or:
            // typeof(TheClassWithTheAttribute).GetMethod(nameof(Main), System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static)?.GetCustomAttributes(false);
            if ((args.Length - 1) > -1)
            {
                ReleasePackaging.PackageRelease(args);
            }
            else
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                using (var mainForm = new MainForm())
                {
                    Application.Run(mainForm);
                }
            }

            return(0);
        }
Esempio n. 2
0
    internal static int Main(string[] args)
    {
        var classType = typeof(Els_kom_Main);

        // execute our attribute.
        classType.GetCustomAttributes(false);
        if ((args.Length - 1) > -1)
        {
            ReleasePackaging.PackageRelease(args);
        }
        else
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            using (var mainForm = new MainForm())
            {
                Application.Run(mainForm);
            }
        }

        return(0);
    }
Esempio n. 3
0
        internal static int Main(string[] args)
        {
            MiniDump.DumpMessage += MiniDump_DumpMessage;
            GitInformation.ApplyAssemblyAttributes(typeof(Els_kom_Main).Assembly);
            KOMManager.MessageEvent        += KOMManager_MessageEvent;
            PluginUpdateCheck.MessageEvent += PluginUpdateCheck_MessageEvent;

            // have to pass in string to this as otherwise it will not compile.
            GenericPluginLoader <string> .PluginLoaderMessage += GenericPluginLoader_PluginLoaderMessage;
            if ((args.Length - 1) > -1)
            {
                ReleasePackaging.PackageRelease(args);
            }
            else
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                using var mainForm = new MainForm();
                Application.Run(mainForm);
            }

            return(0);
        }