Skip to content

Commit

Permalink
Merge pull request #20 from Ali-YousefiTelori/develop
Browse files Browse the repository at this point in the history
update methods
  • Loading branch information
Ali-YousefiTelori authored Dec 23, 2023
2 parents fa72803 + 838b01d commit c6d9a7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<IsPackable>true</IsPackable>
<Version>0.0.0.12</Version>
<Version>0.0.0.13</Version>
<Description>Model View View Model</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>mvvm,mvpvm,modelview,modelviewviewmodel</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public virtual void OnLoadComplete()
/// <param name="destruction"></param>
/// <param name="buttons"></param>
/// <returns></returns>
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))
Expand All @@ -58,7 +58,7 @@ public virtual void OnLoadComplete()
/// <param name="title"></param>
/// <param name="skipItems"></param>
/// <returns></returns>
public async Task<(bool IsSelected, TEnum SelectedItem)> DisplayEnumActionSheet<TEnum>(string title, params string[] skipItems)
public virtual async Task<(bool IsSelected, TEnum SelectedItem)> DisplayEnumActionSheet<TEnum>(string title, params string[] skipItems)
where TEnum : struct, Enum
{
var unusedEnums = new string[]
Expand All @@ -82,7 +82,7 @@ public virtual void OnLoadComplete()
/// <param name="message"></param>
/// <param name="cancel"></param>
/// <returns></returns>
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);
}
Expand All @@ -95,7 +95,7 @@ public Task DisplayAlert(string title, string message, string cancel)
/// <param name="accept"></param>
/// <param name="cancel"></param>
/// <returns></returns>
public Task<bool> DisplayQuestion(string title, string message, string accept = "Yes", string cancel = "No")
public virtual Task<bool> DisplayQuestion(string title, string message, string accept = "Yes", string cancel = "No")
{
return Page.DisplayAlert(title, message, accept, cancel);
}
Expand All @@ -106,7 +106,7 @@ public Task<bool> DisplayQuestion(string title, string message, string accept =
/// <param name="title"></param>
/// <param name="message"></param>
/// <returns></returns>
public Task<string> DisplayPrompt(string title, string message)
public virtual Task<string> DisplayPrompt(string title, string message)
{
return Page.DisplayPrompt(title, message);
}
Expand Down Expand Up @@ -146,7 +146,7 @@ public override Task DisplayServerError(ErrorContract errorContract)
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
public Task DisplayValidationAlert(string message)
public virtual Task DisplayValidationAlert(string message)
{
return Page.DisplayAlert("Data is not valid", message, "Ok");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<IsPackable>true</IsPackable>
<Version>0.0.0.12</Version>
<Version>0.0.0.13</Version>
<Description>Maui easy and light components</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>maui,ui,component,components</PackageTags>
Expand Down

0 comments on commit c6d9a7c

Please sign in to comment.