From 12bcae0daeb0180528fffda32cdb55585e7a839d Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Sat, 23 Dec 2023 20:15:36 +0330 Subject: [PATCH] fix naming --- .../EasyMicroservices.UI.Cores.Mvvm/Interfaces/IPage.cs | 2 +- .../Design/Pages/EasyContentPage.cs | 5 +++-- .../Navigations/DefaultNavigationManager.cs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/Interfaces/IPage.cs b/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/Interfaces/IPage.cs index 10a0424..22c9516 100644 --- a/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/Interfaces/IPage.cs +++ b/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/Interfaces/IPage.cs @@ -16,7 +16,7 @@ public interface IPage /// /// /// - Action OnBackBottonPresssed { get; set; } + Action OnBackButtonPressedAction { get; set; } /// /// /// diff --git a/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Design/Pages/EasyContentPage.cs b/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Design/Pages/EasyContentPage.cs index b0ca13f..1ae5acd 100644 --- a/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Design/Pages/EasyContentPage.cs +++ b/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Design/Pages/EasyContentPage.cs @@ -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(); } diff --git a/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Navigations/DefaultNavigationManager.cs b/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Navigations/DefaultNavigationManager.cs index 4ab4558..4bcda6f 100644 --- a/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Navigations/DefaultNavigationManager.cs +++ b/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Navigations/DefaultNavigationManager.cs @@ -43,7 +43,7 @@ public override async Task PushDataAsync(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;