/// <summary> /// method for opening the view for the editing article /// </summary> private void EditArticleExecute() { try { EditArticleView editUser = new EditArticleView(Article); editUser.ShowDialog(); if ((editUser.DataContext as EditArticleViewModel).IsUpdateArticle == true) { ListOfArticles = GetAllArticles().ToList(); } } catch (Exception ex) { System.Diagnostics.Debug.WriteLine("Exception" + ex.Message.ToString()); } }