Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Sales EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSales(Sale sale)
 {
     base.AddObject("Sales", sale);
 }
Esempio n. 2
0
 /// <summary>
 ///     Sets the textbox fields from the data contained in the Sale parameter
 /// </summary>
 /// <param name="s">The Sale object that needs to be loaded into the textbox fields</param>
 public void SetSale(Sale s)
 {
     this.sale = s;
     this.textBoxPrice.Text = s.Cost.ToString();
     this.dateTimePicker1.Text = s.Date.ToString();
 }
Esempio n. 3
0
 /// <summary>
 /// Create a new Sale object.
 /// </summary>
 /// <param name="saleID">Initial value of the SaleID property.</param>
 /// <param name="dedicationID">Initial value of the DedicationID property.</param>
 /// <param name="donorID">Initial value of the DonorID property.</param>
 /// <param name="cost">Initial value of the Cost property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 public static Sale CreateSale(global::System.Guid saleID, global::System.Guid dedicationID, global::System.Guid donorID, global::System.Decimal cost, global::System.DateTime date)
 {
     Sale sale = new Sale();
     sale.SaleID = saleID;
     sale.DedicationID = dedicationID;
     sale.DonorID = donorID;
     sale.Cost = cost;
     sale.Date = date;
     return sale;
 }
Esempio n. 4
0
 /// <summary>
 ///     Sets the textbox fields from the data contained in the Sale parameter
 /// </summary>
 /// <param name="s">The Sale object that needs to be loaded into the textbox fields</param>
 public void SetSale(Sale s)
 {
     this.sale = s;
     this.textBoxPrice.Text    = s.Cost.ToString();
     this.dateTimePicker1.Text = s.Date.ToString();
 }