public override async Task Run(IAppointmentsProviderActivatedEventArgs args, Frame frame) { if (args is AppointmentsProviderReplaceAppointmentActivatedEventArgs replaceArgs) { await Run(replaceArgs, frame); } else { throw new ArgumentException("Args is not of AppointmentsProviderReplaceAppointmentActivatedEventArgs type"); } }
public override async Task Run(IAppointmentsProviderActivatedEventArgs args, Frame frame) { if (args is AppointmentsProviderShowAppointmentDetailsActivatedEventArgs showDetailsArgs) { await Run(showDetailsArgs, frame); } else { throw new ArgumentException("Args is not of AppointmentsProviderShowAppointmentDetailsActivatedEventArgs type"); } }