Exemple #1
0
 public ABTherapyViewModel(AB_THERAPY obj)
 {
     if (obj != null)
     {
         Model = obj;
     }
     SelectDrugCommand = new DelegateCommand(o => SelectDrug());
     SelectRouteCommand = new DelegateCommand(o => SelectRoute());
     LostFocusAbDrugCommand = new DelegateCommand(o => LostFocusAbDrug());
     LostFocusAbRouteCommand = new DelegateCommand(o => LostFocusAbRoute());
 }
 /// <summary>
 /// Create a new AB_THERAPY object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="cRFId">Initial value of the CRFId property.</param>
 /// <param name="dRUGId">Initial value of the DRUGId property.</param>
 /// <param name="rOUTEId">Initial value of the ROUTEId property.</param>
 public static AB_THERAPY CreateAB_THERAPY(global::System.Guid id, global::System.Guid cRFId, global::System.Guid dRUGId, global::System.Guid rOUTEId)
 {
     AB_THERAPY aB_THERAPY = new AB_THERAPY();
     aB_THERAPY.Id = id;
     aB_THERAPY.CRFId = cRFId;
     aB_THERAPY.DRUGId = dRUGId;
     aB_THERAPY.ROUTEId = rOUTEId;
     return aB_THERAPY;
 }
Exemple #3
0
 public void DeleteABTherapy(AB_THERAPY aB_THERAPY)
 {
     underlyingContext.AbTherapys.DeleteObject(aB_THERAPY);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the AbTherapys EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAbTherapys(AB_THERAPY aB_THERAPY)
 {
     base.AddObject("AbTherapys", aB_THERAPY);
 }