rename from Pixiview to Gallery
This commit is contained in:
31
Gallery/Login/LoginPage.xaml.cs
Executable file
31
Gallery/Login/LoginPage.xaml.cs
Executable file
@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using Gallery.UI;
|
||||
using Gallery.Utils;
|
||||
|
||||
namespace Gallery.Login
|
||||
{
|
||||
public partial class LoginPage : AdaptedPage
|
||||
{
|
||||
private readonly Action action;
|
||||
|
||||
public LoginPage(Action after)
|
||||
{
|
||||
InitializeComponent();
|
||||
webView.UserAgent = Configs.UserAgent;
|
||||
|
||||
BindingContext = this;
|
||||
action = after;
|
||||
}
|
||||
|
||||
private async void Button_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PopModalAsync();
|
||||
}
|
||||
|
||||
private async void WebView_LoginHandle(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PopModalAsync();
|
||||
action?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user