public void CreateSourceObject(CreateSourceObjectEventArgs args)
 {
     if (args.ItemType == ItemType.AppointmentItem)
     {
         args.Instance = new AppointmentEntity();
     }
 }
Exemplo n.º 2
0
 private void SchedulerDataStorage1_CreateSourceObject(object sender, CreateSourceObjectEventArgs e)
 {
     // Das Resultat hier sollte ein neues leeres Objekt vom eigenen
     // persistenten Typ sein.
     e.SourceObject = new Event();
 }