public voidUpdateStatus(IBuildDetaildetail) { // We used the build server later to convert the enums into the localized display values.IBuildServerbuildServer = detail.BuildServer;

lblBuildNumber.Text = detail.BuildNumber;

// The TFS API’s always return DOMAINusername, however the convention is that we only
// display the domain portion if it is different from our current users domain.lblRequestedFor.Text = UserNameFormatter.GetFriendlyName(detail.RequestedFor, null);

// If the build has finished then display the finish time.lblFinishTime.Text = detail.FinishTime.Equals(DateTime.MinValue) ?“”: detail.FinishTime.ToString();