Beispiel #1
0
        public MainFrame()
        {
            services = new Services(this);

            services.EventBus.AddHandler<PageTitleEventArgs>(onTitleChanged);
            services.EventBus.AddHandler<StatusEventArgs>(onStatusChanged);
            services.EventBus.AddHandler<CommandEnableEventArgs>(onCommandEnableChanged);
            services.EventBus.AddHandler<ExitEventArgs>(onExitEvent);
            services.EventBus.AddHandler<OpenEventArgs>(onOpenEvent);
            services.EventBus.AddHandler<TestStateEventArgs>(onTestStateChanged);

            InitializeComponent();

            // Go to initial place
            services.PlaceController.GoTo(new Empty.EmptyPlace());
        }
Beispiel #2
0
 public PresenterMapper(Services services)
 {
     this.services = services;
 }