コード例 #1
0
        protected override bool EqualsCore(RecurrenceModel other)
        {
            var monthlyRecurrence = other as MonthlyRecurrenceModel;

            if (monthlyRecurrence != null)
            {
                return(Every == monthlyRecurrence.Every &&
                       Until == monthlyRecurrence.Until);
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
ファイル: ReminderModel.cs プロジェクト: kosorin/onedo-uwp
        internal static ReminderModel FromData(string reminderData)
        {
            var reminder = Reminder.Load(reminderData);

            if (reminder == null)
            {
                return(null);
            }
            return(new ReminderModel
            {
                DateTime = reminder.DateTime,
                Recurrence = RecurrenceModel.FromData(reminder?.Recurrence),
            });
        }
コード例 #3
0
        protected override bool EqualsCore(RecurrenceModel other)
        {
            var daysOfWeekRecurrence = other as DaysOfWeekRecurrenceModel;

            if (daysOfWeekRecurrence != null)
            {
                return(Every == daysOfWeekRecurrence.Every &&
                       Until == daysOfWeekRecurrence.Until &&
                       DaysOfWeek == daysOfWeekRecurrence.DaysOfWeek);
            }
            else
            {
                return(false);
            }
        }
コード例 #4
0
 protected override bool EqualsCore(RecurrenceModel other)
 {
     return(other is DailyRecurrenceModel);
 }