File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ The example below shows the signature of the event handlers so you can copy the
127127 void EditHandler(SchedulerEditEventArgs args)
128128 {
129129 SchedulerAppointment item = args.Item as SchedulerAppointment;
130- if (!args.IsNew ) // an edit operation, otherwise - an insert operation
130+ if (item != null ) // an edit operation, otherwise - an insert operation
131131 {
132132 // you can prevent opening an item for editing based on a condition
133133 if (item.Title.Contains("vet", StringComparison.InvariantCultureIgnoreCase))
@@ -137,9 +137,7 @@ The example below shows the signature of the event handlers so you can copy the
137137 }
138138 else
139139 {
140- // get the time range of the slot the user clicked to add an appointment
141- DateTime slotStart = item.Start;
142- DateTime slotEnd = item.End;
140+ // new appointment
143141 }
144142 }
145143
You can’t perform that action at this time.
0 commit comments