This is a migrated thread and some comments may be shown as answers.

Load DayOfMonth from Db?

0 Answers 40 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 19 Apr 2012, 04:20 PM
Hi,

still the same Problem. i get all my Appointments from a sqlite DB. To Create a simple Appointment is no Problem,, but how do i add a
RecurrenceRule to an Appointment?

I create a var called Pattern:
var Pattern = new RecurrencePattern()
    {
           DayOrdinal = DayOrdinal_i,
           DaysOfWeekMask =DaysofWeekMask_v,
           FirstDayOfWeek = FirstDayofWeek_d,
           Frequency= Frequency_v,
            Interval = Convert.ToInt32(tasks_dr.Field<Int64>("Interval")),
            MaxOccurrences = Convert.ToInt32(tasks_dr.Field<Int64>("MaxOccurrences")),
            MonthOfYear = Convert.ToInt32(tasks_dr.Field<Int64>("MonthofYear")),
            DayOfMonth = Convert.ToInt32(tasks_dr.Field<Int64>("DayofMonth"))
      };

Then i start to create the Appointment:
Appointment appointment = new Appointment
      {
            Start = start,
            Url = "text",
            End = end,                                                     
            Subject = tasks_dr.Field<String>("Subject"),
            Body = tasks_dr.Field<String>("Body"),                           
             Importance = Importance_v
             //RecurrenceRule = rrr
       };

But how will the Appointment now about the var Pattern?

I can't find any example or something on the help Page :-(((

Thanks
Rene

No answers yet. Maybe you can help?

Tags
ScheduleView
Asked by
ITA
Top achievements
Rank 1
Share this question
or