示例#1
0
        private void LoadData()
        {
            if (CurrentArticle == null)
                CurrentArticle = new Article();

            txtSubject.Text = CurrentArticle.Subject;
            txtContent.Text = CurrentArticle.Content;
        }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Articles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToArticles(Article article)
 {
     base.AddObject("Articles", article);
 }