/// <summary>
 /// Deprecated Method for adding a new object to the Titles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTitles(Title title)
 {
     base.AddObject("Titles", title);
 }
Exemple #2
0
        public Title CreateTitle()
        {
            Title title = new Title();
            title.Text = "Sales chart";
            title.Font = new Font("Trebuchet MS", 14F, FontStyle.Bold);
            title.ForeColor = Color.Gray;

            return title;
        }
 /// <summary>
 /// Create a new Title object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="text">Initial value of the Text property.</param>
 public static Title CreateTitle(global::System.Int32 id, global::System.String name, global::System.String text)
 {
     Title title = new Title();
     title.Id = id;
     title.Name = name;
     title.Text = text;
     return title;
 }