Exemplo n.º 1
0
        private void OpenEventsView(object sender, EventArgs e)
        {
            var eventsView = new EventsView();

            _eventsPresenter = new EventsPresenter(eventsView);
            UpdateViewPanel(_eventsPresenter.EventsView);
        }
Exemplo n.º 2
0
        public EventsPresenter(EventsView eventsView)
        {
            EventsView = eventsView;

            KaptureConfig = KaptureConfig.GetInstance();
            Configuration = (Configuration)KaptureConfig.ConfigManager.Config;

            EventsView.ItemAddedEnabled    = Configuration.Events.ItemAddedEnabled;
            EventsView.ItemLostEnabled     = Configuration.Events.ItemDroppedEnabled;
            EventsView.YouObtainedEnabled  = Configuration.Events.YouObtainedEnabled;
            EventsView.TheyObtainedEnabled = Configuration.Events.TheyObtainedEnabled;
            EventsView.YouRolledEnabled    = Configuration.Events.YouRolledEnabled;
            EventsView.TheyRolledEnabled   = Configuration.Events.TheyRolledEnabled;

            EventsView.ItemAddedEnabledChanged    += ItemAddedEnabledChanged;
            EventsView.ItemDroppedEnabledChanged  += ItemDroppedEnabledChanged;
            EventsView.YouObtainedEnabledChanged  += YouObtainedEnabledChanged;
            EventsView.TheyObtainedEnabledChanged += TheyObtainedEnabledChanged;
            EventsView.YouRolledEnabledChanged    += YouRolledEnabledChanged;
            EventsView.TheyRolledEnabledChanged   += TheyRolledEnabledChanged;
        }