2019-05-01 22:53:56 +03:00
|
|
|
|
using System;
|
2019-06-12 04:31:51 +03:00
|
|
|
|
using Xamarin.Forms;
|
2019-05-01 22:53:56 +03:00
|
|
|
|
|
|
|
|
|
namespace Bit.App.Pages
|
|
|
|
|
{
|
|
|
|
|
public partial class HintPage : BaseContentPage
|
|
|
|
|
{
|
|
|
|
|
private HintPageViewModel _vm;
|
|
|
|
|
|
|
|
|
|
public HintPage()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
_vm = BindingContext as HintPageViewModel;
|
|
|
|
|
_vm.Page = this;
|
2019-06-12 04:31:51 +03:00
|
|
|
|
if(Device.RuntimePlatform == Device.Android)
|
|
|
|
|
{
|
|
|
|
|
ToolbarItems.RemoveAt(0);
|
|
|
|
|
}
|
2019-05-01 22:53:56 +03:00
|
|
|
|
}
|
|
|
|
|
|
2019-06-05 06:16:57 +03:00
|
|
|
|
protected override void OnAppearing()
|
|
|
|
|
{
|
|
|
|
|
base.OnAppearing();
|
|
|
|
|
RequestFocus(_email);
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-01 22:53:56 +03:00
|
|
|
|
private async void Submit_Clicked(object sender, EventArgs e)
|
|
|
|
|
{
|
2019-05-07 06:30:54 +03:00
|
|
|
|
if(DoOnce())
|
|
|
|
|
{
|
|
|
|
|
await _vm.SubmitAsync();
|
|
|
|
|
}
|
2019-05-01 22:53:56 +03:00
|
|
|
|
}
|
2019-06-12 04:31:51 +03:00
|
|
|
|
|
|
|
|
|
private async void Close_Clicked(object sender, System.EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if(DoOnce())
|
|
|
|
|
{
|
|
|
|
|
await Navigation.PopModalAsync();
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-05-01 22:53:56 +03:00
|
|
|
|
}
|
|
|
|
|
}
|