private void LoadData() { if (CurrentArticle == null) CurrentArticle = new Article(); txtSubject.Text = CurrentArticle.Subject; txtContent.Text = CurrentArticle.Content; }
/// <summary> /// Create a new Article object. /// </summary> /// <param name="articleID">Initial value of the ArticleID property.</param> /// <param name="subject">Initial value of the Subject property.</param> /// <param name="deleted">Initial value of the Deleted property.</param> public static Article CreateArticle(global::System.Int32 articleID, global::System.String subject, global::System.Boolean deleted) { Article article = new Article(); article.ArticleID = articleID; article.Subject = subject; article.Deleted = deleted; return article; }
/// <summary> /// Deprecated Method for adding a new object to the Articles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToArticles(Article article) { base.AddObject("Articles", article); }