Esempio n. 1
0
 public override void CtrlOnParametersPassed(Dictionary <string, object> iModuleParameters)
 {
     if (iModuleParameters == null || !iModuleParameters.ContainsKey("ARTICLE_ID"))
     {
         Article = new CtrlArticle();
     }
 }
Esempio n. 2
0
        public void NewArticle()
        {
            var awaiter = Article.Save().GetAwaiter();

            awaiter.OnCompleted(() =>
            {
                Dispatcher.CurrentDispatcher.Invoke(async() =>
                {
                    ((ArticleUserControl)CtrlUserControl).UnlockUserControl();

                    Article = new CtrlArticle();
                    await Article.Save();
                    CtrlValidationHelper.ApplyValidationError(Article, CtrlUserControl);
                });
            });
        }