Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-YousefiTelori committed Dec 23, 2023
1 parent 46c2c26 commit 12bcae0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public interface IPage
/// <summary>
///
/// </summary>
Action OnBackBottonPresssed { get; set; }
Action OnBackButtonPressedAction { get; set; }
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ private void CustomContentPage_Loaded(object sender, EventArgs e)
OnLoadComplete?.Invoke();
}

public Action OnBackBottonPresssed { get; set; }
public Action OnBackButtonPressedAction { get; set; }

public Action OnLoadComplete { get; set; }

protected override bool OnBackButtonPressed()
{
OnBackBottonPresssed?.Invoke();
OnBackButtonPressedAction?.Invoke();
return base.OnBackButtonPressed();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public override async Task<TResponseData> PushDataAsync<TData, TResponseData>(TD
if (page.BindingContext is IResponsibleViewModel responsibleViewModel)
{
if (ipage != null)
ipage.OnBackBottonPresssed = responsibleViewModel.Close;
ipage.OnBackButtonPressedAction = responsibleViewModel.Close;
var result = await responsibleViewModel.GetResult();
if (result != null && result is TResponseData responseData)
return responseData;
Expand Down

0 comments on commit 12bcae0

Please sign in to comment.