public override void CtrlOnParametersPassed(Dictionary <string, object> iModuleParameters) { if (iModuleParameters == null || !iModuleParameters.ContainsKey("ARTICLE_ID")) { Article = new CtrlArticle(); } }
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); }); }); }