コード例 #1
0
        static void Main()
        {
            RegisterAppDomainExceptionLogging();
            if (ShouldQuitWithoutProperDotNetFramework())
            {
                return;
            }

            Logger.Initialize();

            var appInfo = new ApplicationInfo
            {
                Version = Application.ProductVersion,
                OS      = Environment.OSVersion.VersionString,
                DotNet  = NetFrameworkVersionExtension.FriendlyName(NewestFrameworkVersion)
            };

            Lib.Logging.CreateLogger(typeof(Program)).Info(appInfo);

            var pluginTypes = new List <Type>
            {
                typeof(Plugin.Autosplits.Plugin),
                typeof(Plugin.FileWriter.Plugin),
                typeof(Plugin.HttpClient.Plugin),
                typeof(Plugin.PipeServer.Plugin),
                typeof(Plugin.Updater.Plugin),
            };

            using (var di = DiabloInterface.Create(appInfo, pluginTypes))
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainWindow(di));
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: sparkie3/DiabloInterface
        static void Main()
        {
            RegisterAppDomainExceptionLogging();
            if (ShouldQuitWithoutProperDotNetFramework())
            {
                return;
            }

            Log4NetLogger.Initialize();

            LogApplicationInfo();

            var pluginTypes = new List <Type>
            {
                typeof(Plugin.Autosplits.Plugin),
                typeof(Plugin.FileWriter.Plugin),
                typeof(Plugin.HttpClient.Plugin),
                typeof(Plugin.PipeServer.Plugin),
                typeof(Plugin.Updater.Plugin),
            };

            using (var di = DiabloInterface.Create(pluginTypes))
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainWindow(di));
            }
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: MatelDS/DiabloInterface
        static void Main()
        {
            RegisterAppDomainExceptionLogging();
            if (ShouldQuitWithoutProperDotNetFramework())
            {
                return;
            }

            Log4NetLogger.Initialize();

            LogApplicationInfo();

            using (var di = DiabloInterface.Create())
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainWindow(di));
            }
        }