Hello again.
#Q1: How to (Binary if possible, if not, XML example will of course do the job) serialize custom appointment class? Currently, I have this:
using (Stream file = File.Open(fileName, FileMode.Create))
{
BinaryFormatter formatter = new BinaryFormatter();
formatter.Serialize(file, TerminsByIds);
}
TerminsByIds is just a Dictionary<string,
MyTermin>, and the exception is:
Unhandled Exception: System.Runtime.Serialization.SerializationException: Type 'MindFusion.Scheduling.Appointment' in Assembly 'MindFusion.Scheduling.Wpf, Version=3.3.1.10055, Culture=neutral, PublicKeyToken=d12631580350466b' is not marked as serializable.
#Q2: How to achieve this?
(note: this was originaly the first question, but I solved it).I came across some problems while copying a custom Appointment instance (
MyTermin is my class' name) from one calendar to another.
I want to have N Calendars (actually only one which changes it's data) with regular TimeTable view, and one global TimeTable which will have columns goruped by resources. Regular calendars are used to add
MyTermin both to that one regular calendar and to the global calendar.
Please answer as soon as possible. It would be wonderful if You could do it by 11AM tomorrow.Many thanks,
Aleksandar