Beispiel #1
0
        public static void Main(string[] args)
        {
            if (File.Exists("settings.json"))
            {
                ClientConfiguration = new DiscordClientConfig(true);
            }

            System.Windows.Forms.Application.EnableVisualStyles();

            app = new App();

            ///Special defines for Windows 10 notification support
            if (Utilities.OSName() != Utilities.OSFriendly.Windows10)
            {
                ClientConfiguration.Settings.UseWindows10Notifications = false;
            }
            ///

            if (!File.Exists("token_cache"))
            {
                var loginWindow = new LoginForm();
                loginWindow.Show();
            }
            else
            {
                var mainWindow = new MainWindow();
                mainWindow.Show();
            }
            app.Run();
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            if (File.Exists("settings.json"))
                ClientConfiguration = new DiscordClientConfig(true);

            System.Windows.Forms.Application.EnableVisualStyles();

            app = new App();

            ///Special defines for Windows 10 notification support
            if(Utilities.OSName() != Utilities.OSFriendly.Windows10)
            {
                ClientConfiguration.Settings.UseWindows10Notifications = false;
            }
            ///

            if (!File.Exists("token_cache"))
            {
                var loginWindow = new LoginForm();
                loginWindow.Show();
            }
            else
            {
                var mainWindow = new MainWindow();
                mainWindow.Show();
            }
            app.Run();
        }