Exemplo n.º 1
0
        // Your application's entry point. Here you can initialize your MVVM framework, DI
        // container, etc.
        private static void AppMain(Application app, string[] args)
        {
            var config        = new Config();
            var discordBridge = new DiscordBridge();

            discordBridge.Start(config.DiscordClientId);
            app.Run(new MainWindow(config, discordBridge));
        }
        public MainWindow(Config config, DiscordBridge discordBridge)
        {
            this.config        = config;
            this.discordBridge = discordBridge;

            InitializeComponent();
#if DEBUG
            this.AttachDevTools();
#endif
        }