mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 15:45:42 +03:00
32 lines
961 B
C#
32 lines
961 B
C#
using System;
|
|
using Xamarin.Forms;
|
|
|
|
namespace Bit.App.Pages
|
|
{
|
|
public partial class EnvironmentPage : BaseContentPage
|
|
{
|
|
private EnvironmentPageViewModel _vm;
|
|
|
|
public EnvironmentPage()
|
|
{
|
|
InitializeComponent();
|
|
_vm = BindingContext as EnvironmentPageViewModel;
|
|
_vm.Page = this;
|
|
|
|
_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());
|
|
}
|
|
|
|
private async void Submit_Clicked(object sender, EventArgs e)
|
|
{
|
|
if(DoOnce())
|
|
{
|
|
await _vm.SubmitAsync();
|
|
}
|
|
}
|
|
}
|
|
}
|