Ejemplo n.º 1
0
        private void OpenDiscordView(object sender, EventArgs e)
        {
            var discordView = new DiscordView();

            _discordPresenter = new DiscordPresenter(discordView);
            UpdateViewPanel(_discordPresenter.DiscordView);
        }
Ejemplo n.º 2
0
        public DiscordPresenter(DiscordView discordView)
        {
            KaptureConfig = KaptureConfig.GetInstance();
            Configuration = (Configuration)KaptureConfig.ConfigManager.Config;

            DiscordView   = discordView;
            DiscordConfig = Configuration.Discord;

            DiscordView.DiscordEnabled = DiscordConfig.DiscordEnabled;
            DiscordView.Endpoint       = DiscordConfig.Endpoint;

            DiscordView.DiscordEnabledChanged += DiscordEnabledChanged;
            DiscordView.DiscordUpdated        += DiscordUpdated;
        }