public ActivityLoadingView() { this.InitializeComponent(); this._viewModel = (ActivityLoadingViewModel)this.DataContext; EventBusManager.Register <ActivityLoadingView, BaseMessage>(this.BaseMessageEvent); }
public DialogView() { this.InitializeComponent(); this._viewModel = (DialogViewModel)this.DataContext; EventBusManager.Register <DialogView, BaseMessage>(this.BaseMessageEvent); this._viewModel.CommandSelectedPathDialogAccept = new ButtonCommandSelectedPathDialogAccept(this._viewModel); }
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); }
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); }