bitwarden-android/src/App/Pages/Accounts/EnvironmentPage.xaml.cs

33 lines
961 B
C#
Raw Normal View History

2019-05-02 19:20:56 +03:00
using System;
2019-05-31 19:13:14 +03:00
using Xamarin.Forms;
2019-05-02 19:20:56 +03:00
namespace Bit.App.Pages
{
public partial class EnvironmentPage : BaseContentPage
{
private EnvironmentPageViewModel _vm;
public EnvironmentPage()
{
InitializeComponent();
_vm = BindingContext as EnvironmentPageViewModel;
_vm.Page = this;
2019-05-31 19:13:14 +03:00
_webVaultEntry.ReturnType = ReturnType.Next;
_webVaultEntry.ReturnCommand = new Command(() => _apiEntry.Focus());
_apiEntry.ReturnType = ReturnType.Next;
_apiEntry.ReturnCommand = new Command(() => _identityEntry.Focus());
_identityEntry.ReturnType = ReturnType.Next;
_identityEntry.ReturnCommand = new Command(() => _iconsEntry.Focus());
2019-05-02 19:20: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-02 19:20:56 +03:00
}
}
}