예제 #1
0
        private void LoadData()
        {
            if (CurrentSupply == null)
                CurrentSupply = new Supply();

            txtCode.Text = CurrentSupply.Code;
            txtName.Text = CurrentSupply.Name;
            txtComment.Text = CurrentSupply.Comment;
        }
예제 #2
0
 /// <summary>
 /// Create a new Supply object.
 /// </summary>
 /// <param name="supplyID">Initial value of the SupplyID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="code">Initial value of the Code property.</param>
 /// <param name="deleted">Initial value of the Deleted property.</param>
 public static Supply CreateSupply(global::System.Int32 supplyID, global::System.String name, global::System.String code, global::System.Boolean deleted)
 {
     Supply supply = new Supply();
     supply.SupplyID = supplyID;
     supply.Name = name;
     supply.Code = code;
     supply.Deleted = deleted;
     return supply;
 }
예제 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Supplies EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSupplies(Supply supply)
 {
     base.AddObject("Supplies", supply);
 }