public Time(Rollout roll) { InitializeComponent(); _roll = roll; this.lblTimeFor.Text = "Time data for rollout: " + _roll.Id.ToString() + " Client: " + _roll.Client.Name + " Scheduled Date: " + _roll.ScheduledDate.ToShortDateString(); _times = roll.Times; this.UpdateLv(); }
public Time(Effort eff) { InitializeComponent(); _eff = eff; this.lblTimeFor.Text = "Time data for effort: " + _eff.ConventionalId; _times = _eff.Times; this.UpdateLv(); }
public Times GetTimes(string userEmail) { Times times = new Times(); foreach(Effort eff in this){ foreach(Time time in eff.Times){ if (time.User == userEmail){ times.Add(time); } } } return times; }
public Times GetTimes(string userEmail) { Times times = new Times(); foreach(Rollout roll in this){ foreach(Time time in roll.Times){ if (time.User == userEmail){ times.Add(time); } } } return times; }