コード例 #1
0
 private void Show()
 {
     using (IContext context = CreateContext())
     {
         IEntityRepository entityRepository = CreateRepository(context);
         var presenter = new SetTextPresenter(entityRepository);
         _viewModel = presenter.Show();
     }
 }
コード例 #2
0
        public override string Load(Dictionary <string, string> parameters)
        {
            using (IContext context = PersistenceHelper.CreateContext())
            {
                IEntityRepository entityRepository = PersistenceHelper.CreateRepository <IEntityRepository>(context);
                SetTextPresenter  presenter        = new SetTextPresenter(entityRepository);
                Model = presenter.Show();
            }

            return(ViewPerspective.Default);
        }