Bitwarden-app-android-iphon.../src/App/Pages/Settings/SyncPage.xaml.cs

25 lines
505 B
C#
Raw Normal View History

2019-05-14 18:05:30 +02:00
using System;
namespace Bit.App.Pages
{
public partial class SyncPage : BaseContentPage
{
private readonly SyncPageViewModel _vm;
public SyncPage()
{
InitializeComponent();
_vm = BindingContext as SyncPageViewModel;
_vm.Page = this;
}
private async void Sync_Clicked(object sender, EventArgs e)
{
if(DoOnce())
{
await _vm.SyncAsync();
}
}
}
}