Hello,
I'm using WinSchedule for the first time, and I think it is great! But I can not figure something out and I would like to ask a question.
I'm using my own Dialogs and my own database managment to manipulate insertion, updating, recurrency and deleting appointments. What I can not figure out is this: How can I get the recurring appointments from the ultracalendarinfo? I mean if you have a reccuring appointment - for 10 occurances for example - and you change the details of one occurance, you have to insert to the database a new appointment, to indicate this change. But when you change the details of a second occurance, you again insert to the database a new appointment with these changes. My problem is to choose which of these two appointments is changed when further changes to these appointments are made? Their data are the same! Same recurrenceID, same root appointmen, etct. And their differences in date and/or time, are not very stable and very seccure to go with.
I don't know if I make any sense, but I would really appreciate some help on this matter.
I'm not clear on why you are manually handling the data binding, but The object model was not designed with that kind of extensibility in mind. The "...differences in date and/or time" can be the only thing different about 2 given occurrences. When you add separate records for appointments while maintaining their association with the root appointment, you are essentially making them "variances", which are supposed to only exist when something other than the date/time is different.
I'm also not exactly sure I understaood the question but if you want to get the appointments generated by a given recurrence, you would have to use the UltraCalendarInfo.GetAppointmentsInRange method, then iterate the resulting subset and filter out the ones whose RecurringAppointmentRoot property return the appointment in question.
Well, the reason for databinding the calendar on my own, is that I am in Greece, and I have to make extensive changes in dialogs, resources, etc. Anyway, I don't think that the databinding model I'm using is very differrent... It is based on your model of course...
My question is this: If I have two variances that are identical (with the same startdate, enddate, subject, etc), how can I get the one I want? I know that this is rather rare, but the users can do rare things sometimes... I mean that every variance has a different ID in the database, but this ID is not available, when you resize, drag and drop, etc, the appointment variance.
And one more question: You said: "...making them "variances", which are supposed to only exist when something other than the date/time is different.". You mean that whatever different from the RecurrenceRoot must be inserted in the Database? Subject, Location, differences in date and/or time, etc? At least, that's what I understood...
Struski said:I have to make extensive changes in dialogs, resources, etc.
Struski said:My question is this: If I have two variances that are identical (with the same startdate, enddate, subject, etc), how can I get the one I want?