public override int GetHashCode() { unchecked { return((ProjectName.GetHashCode() * 397) ^ (ProjectColor.GetHashCode() * 397) ^ ClientName.GetHashCode()); } }
public override int GetHashCode() { unchecked { return((Text.GetHashCode() * 397) ^ (CursorPosition.GetHashCode() * 397) ^ (ProjectColor.GetHashCode() * 397) ^ (Tags.Length.GetHashCode() * 397) ^ ProjectName.GetHashCode()); } }
private StatusColor ProcessColor(DateTime[] monthDates, Label[] labels, bool isProjectApprovedByCI, bool isChangedToBlueChecked) { if (isProjectApprovedByCI) { if (isChangedToBlueChecked) { return(StatusColor.Blue); } if (monthDates[monthDates.Length - 1] < DateTime.Now) { var lbl = labels[monthDates.Length - 1]; var actuals = this.GetActualsForMonth(lbl.ID); var areAllValuesEnteredForActuals = true; foreach (var actual in actuals) { if (actual.Text == "" && this.GetCheckBoxForActual(actual.ID).Checked) { areAllValuesEnteredForActuals = false; break; } } if (areAllValuesEnteredForActuals) { return(StatusColor.Black); } } DateTime monthDate; for (var index = 0; index < monthDates.Length; index++) { monthDate = monthDates[index]; var lbl = labels[index]; var actuals = this.GetActualsForMonth(lbl.ID); foreach (var actual in actuals) { var continueProcessing = false; var statusColor = ProjectColor.GetColor(monthDate, actual.Text, this.GetCheckBoxForActual(actual.ID).Checked, out continueProcessing); if (!continueProcessing) { return(statusColor); } } } return(StatusColor.Green); } else { return(StatusColor.Gray); } }