Beispiel #1
0
 public Udlejning(Member ActualMember, Location ActualReservation)
 {
     InitializeComponent();
     this.MyMember = ActualMember;
     textBox1.Text = MyMember.Name;
     if (ActualReservation != null)
     {
         this.MyTool = ActualReservation.Tool;
         this.MyReservation = ActualReservation;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Create a new Location object.
 /// </summary>
 /// <param name="memberId">Initial value of the MemberId property.</param>
 /// <param name="toolId">Initial value of the ToolId property.</param>
 /// <param name="startDate">Initial value of the StartDate property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="locID">Initial value of the LocID property.</param>
 public static Location CreateLocation(global::System.Int32 memberId, global::System.Int32 toolId, global::System.DateTime startDate, global::System.Int32 status, global::System.Int32 locID)
 {
     Location location = new Location();
     location.MemberId = memberId;
     location.ToolId = toolId;
     location.StartDate = startDate;
     location.Status = status;
     location.LocID = locID;
     return location;
 }
Beispiel #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Location EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLocation(Location location)
 {
     base.AddObject("Location", location);
 }