Exemplo n.º 1
0
        private void UserManage(object sender, RoutedEventArgs e)
        {
            var view = new UserManageView();

            new UserPresenter(view, model);
            view.Owner = this;
            view.Show();
        }
Exemplo n.º 2
0
 public UserPresenter(UserManageView view, Model model)
 {
     _view  = view;
     _model = model;
     _view.SynthesisUniverseUsers(_model.AllUsers, Model.CreationTime);
     _view.UserSeeker     += View_UserSeeker;
     _view.TheChosenOne   += View_TheChosenOne;
     _view.UserImaginator += View_UserImaginator;
     _view.UserDestroyer  += View_UserDestroyer;
     _view.Fresh          += View_Fresh;
     _model.ImaginateUser += Model_MutateUser;
     _model.DestroyUser   += Model_DestroyUser;
 }