diff --git a/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/EasyMicroservices.UI.Cores.Mvvm.csproj b/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/EasyMicroservices.UI.Cores.Mvvm.csproj index b34bc30..2540c40 100644 --- a/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/EasyMicroservices.UI.Cores.Mvvm.csproj +++ b/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/EasyMicroservices.UI.Cores.Mvvm.csproj @@ -5,7 +5,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.12 + 0.0.0.13 Model View View Model EasyMicroservices@gmail.com mvvm,mvpvm,modelview,modelviewviewmodel diff --git a/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/PageBaseViewModel.cs b/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/PageBaseViewModel.cs index 5276f20..fd6e2ff 100644 --- a/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/PageBaseViewModel.cs +++ b/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/PageBaseViewModel.cs @@ -43,7 +43,7 @@ public virtual void OnLoadComplete() /// /// /// - public async Task<(bool IsSelected, string SelectedItem)> DisplayActionSheet(string title, string cancel, string destruction, params string[] buttons) + public virtual async Task<(bool IsSelected, string SelectedItem)> DisplayActionSheet(string title, string cancel, string destruction, params string[] buttons) { var res = await Page.DisplayActionSheet(title, cancel, destruction, buttons); if (buttons != null && buttons.Contains(res)) @@ -58,7 +58,7 @@ public virtual void OnLoadComplete() /// /// /// - public async Task<(bool IsSelected, TEnum SelectedItem)> DisplayEnumActionSheet(string title, params string[] skipItems) + public virtual async Task<(bool IsSelected, TEnum SelectedItem)> DisplayEnumActionSheet(string title, params string[] skipItems) where TEnum : struct, Enum { var unusedEnums = new string[] @@ -82,7 +82,7 @@ public virtual void OnLoadComplete() /// /// /// - public Task DisplayAlert(string title, string message, string cancel) + public virtual Task DisplayAlert(string title, string message, string cancel) { return Page.DisplayAlert(title, message, cancel); } @@ -95,7 +95,7 @@ public Task DisplayAlert(string title, string message, string cancel) /// /// /// - public Task DisplayQuestion(string title, string message, string accept = "Yes", string cancel = "No") + public virtual Task DisplayQuestion(string title, string message, string accept = "Yes", string cancel = "No") { return Page.DisplayAlert(title, message, accept, cancel); } @@ -106,7 +106,7 @@ public Task DisplayQuestion(string title, string message, string accept = /// /// /// - public Task DisplayPrompt(string title, string message) + public virtual Task DisplayPrompt(string title, string message) { return Page.DisplayPrompt(title, message); } @@ -146,7 +146,7 @@ public override Task DisplayServerError(ErrorContract errorContract) /// /// /// - public Task DisplayValidationAlert(string message) + public virtual Task DisplayValidationAlert(string message) { return Page.DisplayAlert("Data is not valid", message, "Ok"); } diff --git a/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/EasyMicroservices.UI.MauiComponents.csproj b/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/EasyMicroservices.UI.MauiComponents.csproj index 56f5d28..510f48b 100644 --- a/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/EasyMicroservices.UI.MauiComponents.csproj +++ b/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/EasyMicroservices.UI.MauiComponents.csproj @@ -18,7 +18,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.12 + 0.0.0.13 Maui easy and light components EasyMicroservices@gmail.com maui,ui,component,components