Пример #1
0
        private void RegisterHandler(object sender, EventArgs e)
        {
            RegisterView      regView           = new RegisterView();
            RegisterPresenter registerPresenter = new RegisterPresenter(regView);

            regView.Presenter = registerPresenter;
            regView.ShowDialog();
        }
Пример #2
0
        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());
        }
Пример #3
0
        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();
        }