public ArticlesDetailsPresentationModel(IArticlesDetailsView view, Article model, ArticleService service,
                                                IUnityContainer container, IRegionManager regionManager)
        {
            try
            {
                View               = view;
                Model              = model;
                Service            = service;
                this.container     = container;
                this.regionManager = regionManager;

                ControlRights = Model.GetControls(Settings.Default.ModuleName, "ArticlesDetailsView");

                ArticleSaveCommand  = new DelegateCommand <object>(OnArticleSaveExecute, OnArticleSaveCanExecute);
                ArticleCloseCommand = new DelegateCommand <object>(OnArticleCloseExecute, OnArticleCloseCanExecute);

                MessageStack = new P2MessageStack();

                View.Model = this;
                RefreshView();
            }
            catch (Exception ex)
            {
                P2ExceptionHandler.LogException(ex, string.Format("{0}.{1}", GetType().Name, MethodBase.GetCurrentMethod().Name));
            }
        }
예제 #2
0
 public void InsertAndUpdate(P2MessageStack messageStack, bool checkDoublicate)
 {
     throw new System.NotImplementedException();
 }