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
127
127
void EditHandler(SchedulerEditEventArgs args)
128
128
{
129
129
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
131
131
{
132
132
// you can prevent opening an item for editing based on a condition
133
133
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
137
137
}
138
138
else
139
139
{
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
143
141
}
144
142
}
145
143
You can’t perform that action at this time.
0 commit comments