private void RegisterHandler(object sender, EventArgs e) { RegisterView regView = new RegisterView(); RegisterPresenter registerPresenter = new RegisterPresenter(regView); regView.Presenter = registerPresenter; regView.ShowDialog(); }
private void RegisterNewCustomerHandler(object sender, EventArgs e) { RegisterView regView = new RegisterView(); RegisterPresenter registerPresenter = new RegisterPresenter(regView); regView.Presenter = registerPresenter; regView.ShowDialog(); eventAggregator.Publish(new ReloadDataMessage()); }
public void ShowRegisterView() { this.IsEnable = true; RegisterView view = new RegisterView(); RegisterViewModel viewModel = new RegisterViewModel(); viewModel.RegisterCompleted += viewModel_RegisterCompleted; view.DataContext = viewModel; view.ShowDialog(); }
private void RegisterExecute() { RegisterView view = new RegisterView(); view.ShowDialog(); }