public ActivityLoadingView()
        {
            this.InitializeComponent();

            this._viewModel = (ActivityLoadingViewModel)this.DataContext;

            EventBusManager.Register <ActivityLoadingView, BaseMessage>(this.BaseMessageEvent);
        }
Exemplo n.º 2
0
        public DialogView()
        {
            this.InitializeComponent();

            this._viewModel = (DialogViewModel)this.DataContext;

            EventBusManager.Register <DialogView, BaseMessage>(this.BaseMessageEvent);

            this._viewModel.CommandSelectedPathDialogAccept = new ButtonCommandSelectedPathDialogAccept(this._viewModel);
        }
Exemplo n.º 3
0
        public MainView()
        {
            this.InitializeComponent();

            this._viewModel = (MainViewModel)this.DataContext;

            EventBusManager.Register <MainView, BaseMessage>(this.BaseMessageEvent);
            this._viewModel.CommandSelectedDistrict    = new ChangedCommandSelectedDistrict(this._viewModel);
            this._viewModel.CommandSortByWeekIncidence = new ButtonCommandSortByWeekIncidence(this._viewModel);
            this._viewModel.CommandSortByDeaths        = new ButtonCommandSortByDeaths(this._viewModel);
        }
Exemplo n.º 4
0
        public MenuView()
        {
            this.InitializeComponent();

            this._viewModel = (MenuViewModel)this.DataContext;

            this._viewModel.CommandOpenMain  = new ButtonCommandOpenMain(this._viewModel);
            this._viewModel.CommandOpenSetup = new ButtonCommandOpenSetup(this._viewModel);

            EventBusManager.Register <MenuView, BaseMessage>(this.BaseMessageEvent);
            this._viewModel.ViewOpened = EventBusManager.GetViewOpened(0);
        }