public AddExternalAccountPopup(AddExternalAccountRequest request) { InitializeComponent(); _responseHandler = request.ResponseHandler; this.DataContext = this; AddExternalAccountCommand = new DelegateCommand<object>(this.AddExternalAccountExecute, this.CanAddExternalAccountExecute); CancelCommand = new DelegateCommand<object>(this.CancelExecute); this.PropertyChanged += this.OnPropertyChanged; this.ValidateAll(); }
private void OnAddExternalAccountRequest(AddExternalAccountRequest request) { AddExternalAccountPopup popup = new AddExternalAccountPopup(request); popup.Show(); }
private void AddExternalAccountExecute(object dummyObject) { // Send AddExternalAccountRequestEvent to create the CreateNewAccount dialog AddExternalAccountRequest request = new AddExternalAccountRequest { ResponseHandler = AddExternalAccountResponseHandler }; _eventAggregator.GetEvent<AddExternalAccountRequestEvent>().Publish(request); }