@@ -21,12 +21,12 @@ public static Task ShowDialogAsync<TDialog>(this IDialogService dialogService)
2121 /// <typeparam name="TDialog">Dialog type to show.</typeparam>
2222 /// <typeparam name="TParameter">Parameter type.</typeparam>
2323 public static Task ShowDialogAsync < TDialog , TParameter > ( this IDialogService dialogService , TParameter parameter , DialogOptions ? dialogOptions = null )
24- where TDialog : DialogComponentBaseTParameter < TParameter > =>
24+ where TDialog : DialogComponentBase < TParameter > =>
2525 dialogService . Show < TDialog > (
2626 string . Empty ,
2727 new DialogParameters
2828 {
29- [ nameof ( DialogComponentBaseTParameter < TParameter > . Parameter ) ] = parameter ,
29+ [ nameof ( DialogComponentBase < TParameter > . Parameter ) ] = parameter ,
3030 } ,
3131 dialogOptions ) . Result ;
3232
@@ -37,13 +37,13 @@ public static Task ShowDialogAsync<TDialog, TParameter>(this IDialogService dial
3737 /// <typeparam name="TParameter">Parameter type.</typeparam>
3838 /// <typeparam name="TResult">Result type.</typeparam>
3939 public static async Task < TResult > ShowDialogResultAsync < TDialog , TParameter , TResult > ( this IDialogService dialogService , TParameter parameter , DialogOptions ? dialogOptions = null )
40- where TDialog : DialogComponentBaseTParameterTResult < TParameter , TResult >
40+ where TDialog : DialogComponentBase < TParameter , TResult >
4141 {
4242 var result = await dialogService . Show < TDialog > (
4343 string . Empty ,
4444 new DialogParameters
4545 {
46- [ nameof ( DialogComponentBaseTParameter < TParameter > . Parameter ) ] = parameter ,
46+ [ nameof ( DialogComponentBase < TParameter > . Parameter ) ] = parameter ,
4747 } ,
4848 dialogOptions ) . Result ;
4949
@@ -56,7 +56,7 @@ public static async Task<TResult> ShowDialogResultAsync<TDialog, TParameter, TRe
5656 /// <typeparam name="TDialog">Dialog type to show.</typeparam>
5757 /// <typeparam name="TResult">Result type</typeparam>
5858 public static async Task < TResult > ShowDialogResultAsync < TDialog , TResult > ( this IDialogService dialogService , DialogOptions ? dialogOptions = null )
59- where TDialog : DialogComponentBaseTResult < TResult >
59+ where TDialog : DialogComponentBaseWithResult < TResult >
6060 {
6161 var result = await dialogService . Show < TDialog > ( string . Empty , dialogOptions ) . Result ;
6262 return ( TResult ) result . Data ;
0 commit comments