@@ -272,21 +272,21 @@ You can use the `EditMode` property to implement different logic based on whethe
272272    { 
273273        Appointment item = (Appointment)args.Item; 
274274
275-         // OnEdit fires when the user is about to edit or create an appointment 
276-         // SchedulerRecurrenceEditMode indicates whether they chose to edit the series or occurrence 
275+         // OnEdit fires when the user is about to edit or create an appointment.  
276+         // SchedulerRecurrenceEditMode indicates whether they chose to edit the series or occurrence.  
277277        if (args.EditMode == SchedulerRecurrenceEditMode.Series) 
278278        { 
279279            Console.WriteLine("User chose to edit the entire series"); 
280-             // The item represents the recurring appointment with RecurrenceRule 
280+             // The item represents the recurring appointment with RecurrenceRule.  
281281        } 
282282        else if (args.EditMode == SchedulerRecurrenceEditMode.Occurrence) 
283283        { 
284284            Console.WriteLine("User chose to edit only this occurrence"); 
285-             // The item will have RecurrenceId set to the parent appointment's Id 
285+             // The item will have RecurrenceId set to the parent appointment's Id.  
286286            Console.WriteLine($"Editing exception for recurring appointment: {item.RecurrenceId}"); 
287287        } 
288288
289-         // You can cancel the event to prevent editing 
289+         // You can cancel the event to prevent editing.  
290290        // args.IsCancelled = true; 
291291    } 
292292
@@ -296,10 +296,10 @@ You can use the `EditMode` property to implement different logic based on whethe
296296
297297        if (args.EditMode == SchedulerRecurrenceEditMode.Series) 
298298        { 
299-             // User chose to update the entire series 
299+             // User chose to update the entire series.  
300300            Console.WriteLine("Updating entire series of recurring appointments"); 
301301             
302-             // Update the recurring appointment 
302+             // Update the recurring appointment.  
303303            int originalItemIndex = SchedulerData.FindIndex(a => a.Id == item.Id); 
304304            if (originalItemIndex >= 0) 
305305            { 
@@ -308,11 +308,11 @@ You can use the `EditMode` property to implement different logic based on whethe
308308        } 
309309        else if (args.EditMode == SchedulerRecurrenceEditMode.Occurrence) 
310310        { 
311-             // User chose to update only this occurrence 
311+             // User chose to update only this occurrence.  
312312            Console.WriteLine("Creating exception for single occurrence"); 
313313             
314-             // This creates a new exception appointment 
315-             // The item will have RecurrenceId pointing to the parent 
314+             // This creates a new exception appointment.  
315+             // The item will have RecurrenceId pointing to the parent.  
316316            int originalItemIndex = SchedulerData.FindIndex(a => a.Id == item.Id); 
317317            if (originalItemIndex >= 0) 
318318            { 
@@ -327,40 +327,40 @@ You can use the `EditMode` property to implement different logic based on whethe
327327
328328        if (args.EditMode == SchedulerRecurrenceEditMode.Series) 
329329        { 
330-             // User chose to delete the entire series 
330+             // User chose to delete the entire series.  
331331            Console.WriteLine("Deleting entire series"); 
332332             
333-             // Remove the recurring appointment 
333+             // Remove the recurring appointment.  
334334            SchedulerData.Remove(item); 
335335             
336-             // Optionally, remove all exceptions for this series 
336+             // Optionally, remove all exceptions for this series.  
337337            if (!string.IsNullOrEmpty(item.RecurrenceRule)) 
338338            { 
339339                SchedulerData.RemoveAll(a => a.RecurrenceId?.Equals(item.Id) == true); 
340340            } 
341341        } 
342342        else if (args.EditMode == SchedulerRecurrenceEditMode.Occurrence) 
343343        { 
344-             // User chose to delete only this occurrence 
344+             // User chose to delete only this occurrence.  
345345            Console.WriteLine("Deleting single occurrence"); 
346346             
347347            if (item.RecurrenceId != null) 
348348            { 
349-                 // This is already an exception, just remove it 
349+                 // This is already an exception, just remove it.  
350350                SchedulerData.Remove(item); 
351351                 
352-                 // Update the parent appointment's RecurrenceExceptions list 
352+                 // Update the parent appointment's RecurrenceExceptions list.  
353353                var parentAppointment = SchedulerData.FirstOrDefault(a => a.Id.Equals(item.RecurrenceId)); 
354354                if (parentAppointment != null) 
355355                { 
356-                     // Remove the exception date from the parent's list 
356+                     // Remove the exception date from the parent's list.  
357357                    parentAppointment.RecurrenceExceptions?.Remove(item.Start); 
358358                } 
359359            } 
360360            else 
361361            { 
362-                 // This is a recurring appointment, create an exception 
363-                 // The Scheduler automatically adds the occurrence date to RecurrenceExceptions 
362+                 // This is a recurring appointment, create an exception.  
363+                 // The Scheduler automatically adds the occurrence date to RecurrenceExceptions.  
364364                SchedulerData.Remove(item); 
365365            } 
366366        } 
0 commit comments