コード例 #1
0
        public ActivityLoadingView()
        {
            this.InitializeComponent();

            this._viewModel = (ActivityLoadingViewModel)this.DataContext;

            EventBusManager.Register <ActivityLoadingView, BaseMessage>(this.BaseMessageEvent);
        }
コード例 #2
0
        public DialogView()
        {
            this.InitializeComponent();

            this._viewModel = (DialogViewModel)this.DataContext;

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

            this._viewModel.CommandSelectedPathDialogAccept = new ButtonCommandSelectedPathDialogAccept(this._viewModel);
        }
コード例 #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);
        }
コード例 #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);
        }