public ShowTaskForm(BookingServiceReference.Booking booking, BookingServiceReference.SupportTask supportTask) { InitializeComponent(); lblStartDate.Text = booking.StartDate.ToString(); lblEndDate.Text = booking.EndDate.ToString(); UserServiceReference.User user = userService.GetUser(booking.User_Id); lblCreatedBy.Text = user.FirstName + " " + user.LastName; lblName.Text = supportTask.Name.ToString(); txtDescription.Text = supportTask.Description.ToString(); }
public ShowReadyToGoForm(BookingServiceReference.Booking booking, BookingServiceReference.ReadyToGo readyToGo) { InitializeComponent(); lblStartDate.Text = booking.StartDate.ToString(); lblEndDate.Text = booking.EndDate.ToString(); UserServiceReference.User user = userService.GetUser(booking.User_Id); lblCreatedBy.Text = user.FirstName + " " + user.LastName; lblProductNr.Text = readyToGo.ProductNr.ToString(); lblAppendixNr.Text = readyToGo.AppendixNr.ToString(); if (readyToGo.Contract == true) { lblHasContract.Text = "Ja"; } else { lblHasContract.Text = "Nej"; } lblAdditionalServices.Text = readyToGo.AdditionalServices; }