Пример #1
0
        public override bool Equals(object obj)
        {
            ReminderData compareTo = obj as ReminderData;

            return(this.registrationDate == compareTo.registrationDate
                   &&
                   this.isActive == compareTo.isActive
                   &&
                   this.isDeleted == compareTo.isDeleted
                   &&
                   this.isDefault == compareTo.isDefault
                   &&
                   this.isDone == compareTo.isDone
                   &&
                   this.id == compareTo.id
                   &&
                   this.title == compareTo.title
                   &&
                   this.message == compareTo.message
                   &&
                   this.fireDate == compareTo.fireDate
                   &&
                   this.endDate == compareTo.endDate
                   &&
                   this.repeatInterval == compareTo.repeatInterval
                   &&
                   (this.daysOfWeek == compareTo.daysOfWeek
                    ||
                    this.daysOfWeek.Length == compareTo.daysOfWeek.Length &&
                    this.daysOfWeek.SequenceEqual(compareTo.daysOfWeek)));
        }
Пример #2
0
        public void CopyData(ReminderData targetData)
        {
            this.isActive  = targetData.isActive;
            this.isDeleted = targetData.isDeleted;
            this.isDefault = targetData.isDefault;
            this.isDone    = targetData.isDone;

            this.id      = targetData.id;
            this.title   = targetData.title;
            this.message = targetData.message;

            this.fireDate       = targetData.fireDate;
            this.endDate        = targetData.endDate;
            this.repeatInterval = targetData.repeatInterval;
            this.daysOfWeek     = targetData.daysOfWeek;
        }
Пример #3
0
 public ReminderData(ReminderData targetData)
 {
     this.registrationDate = targetData.registrationDate;
     this.appMode          = targetData.appMode;
     CopyData(targetData);
 }