// Exit the application
        void Exit(object sender, EventArgs e)
        {
            YoutubeHandler.Exit();
            DiscordClient.Exit();

            this.trayIcon.Visible = false;
            Application.Exit();
        }
Пример #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DiscordClient.Initialize();

            YoutubeHandler.Initialize();
            YoutubeHandler.Start();

            Application.Run(new MainApplicationContext());
        }
 // Resume the RPC
 void Start(object sender, EventArgs e)
 {
     DiscordClient.Start();
     YoutubeHandler.Start();
     UpdateContextMenu();
 }