private bool UseCorrectComparationAcoordingIfTheyAreEmptyOrNot(DateField otherDateField) { if (this.IsEmpty() && otherDateField.IsEmpty()) { return(Name.Equals(otherDateField.Name)); } else if (otherDateField.IsEmpty()) { return(false); } else { return(GetData().Equals(otherDateField.GetData()) && Name.Equals(otherDateField.Name)); } }