Exemplo n.º 1
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="controller">The events controller</param>
 public EventNotificationWindow(IEventsController controller)
 {
     this.controller  = controller;
     this.viewModel   = new EventNotificationsWindowViewModel(this.controller);
     this.DataContext = this.viewModel;
     InitializeComponent();
     this.Loaded += (o, e) => this.LoadWindowLocation();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="eventListController">The event tracker controller</param>
        public EventTrackerView(IEventsController eventListController)
        {
            logger.Debug("New EventTrackerView created");
            this.controller  = eventListController;
            this.viewModel   = new EventTrackerViewModel(this.controller);
            this.DataContext = this.viewModel;
            InitializeComponent();

            // Save the hight values for use when collapsing the window
            this.MinHeight = minHeight;
            this.MaxHeight = maxHeight;
            this.Height    = GW2PAO.Properties.Settings.Default.EventTrackerHeight;

            this.Closing += EventTrackerView_Closing;
            this.beforeCollapseHeight = this.Height;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            logger.Debug("Initializing Events Module");

            this.eventsController = this.container.GetExportedValue<IEventsController>();
            this.viewController = this.container.GetExportedValue<IEventsViewController>();

            // Register for shutdown
            Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown));

            // Get the events controller started
            this.eventsController.Start();

            // Initialize the view controller
            this.viewController.Initialize();

            logger.Debug("Events Module initialized");
        }
Exemplo n.º 4
0
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            logger.Debug("Initializing Events Module");

            this.eventsController = this.container.GetExportedValue <IEventsController>();
            this.viewController   = this.container.GetExportedValue <IEventsViewController>();

            // Register for shutdown
            Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown));

            // Get the events controller started
            this.eventsController.Start();

            // Initialize the view controller
            this.viewController.Initialize();

            logger.Debug("Events Module initialized");
        }
Exemplo n.º 5
0
 public EventNotificationsWindowViewModel(IEventsController controller)
 {
     this.controller = controller;
 }
Exemplo n.º 6
0
 public WorldBossListViewModel(IEventsController eventTrackerController)
 {
     this.controller = eventTrackerController;
     this.ResetHiddenEventsCommand = new DelegateCommand(this.ResetHiddenEvents);
     this.SettingsCommand          = new DelegateCommand(() => Commands.OpenEventSettingsCommand.Execute(null));
 }
 public EventNotificationsWindowViewModel(IEventsController controller)
 {
     this.controller = controller;
 }
Exemplo n.º 8
0
 public MetaEventListViewModel(IEventsController eventTrackerController)
 {
     this.controller = eventTrackerController;
     this.ResetHiddenEventsCommand = new DelegateCommand(this.ResetHiddenEvents);
     this.SettingsCommand = new DelegateCommand(() => Commands.OpenEventSettingsCommand.Execute(null));
 }
Exemplo n.º 9
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="eventTrackerController">The event tracker controller</param>
 public EventTrackerViewModel(IEventsController eventTrackerController)
 {
     this.controller = eventTrackerController;
 }