1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00
Files
mobile/src/Samples/EmbeddedIOSNavigationIssue/Core/HomePage.xaml.cs
2023-12-26 18:47:59 -03:00

29 lines
661 B
C#

namespace Bit.Core;
public partial class HomePage : ContentPage
{
public HomePage(AppOptions appOptions = null)
{
InitializeComponent();
if (appOptions is null)
{
StartLoginAction = () => Navigation.PushModalAsync(new LoginPage());
CloseAction = () => Navigation.PopModalAsync();
}
}
public Action StartLoginAction { get; set; }
public Action CloseAction { get; set; }
void Login_Clicked(System.Object sender, System.EventArgs e)
{
StartLoginAction();
}
void Cancel_Clicked(System.Object sender, System.EventArgs e)
{
CloseAction();
}
}