2019-05-02 21:53:45 +03:00
|
|
|
|
using System;
|
2019-06-12 04:31:51 +03:00
|
|
|
|
using Xamarin.Forms;
|
2019-05-02 21:53:45 +03:00
|
|
|
|
|
|
|
|
|
namespace Bit.App.Pages
|
|
|
|
|
{
|
|
|
|
|
public partial class PasswordHistoryPage : BaseContentPage
|
|
|
|
|
{
|
|
|
|
|
private PasswordHistoryPageViewModel _vm;
|
|
|
|
|
|
|
|
|
|
public PasswordHistoryPage(string cipherId)
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
SetActivityIndicator();
|
|
|
|
|
_vm = BindingContext as PasswordHistoryPageViewModel;
|
|
|
|
|
_vm.Page = this;
|
|
|
|
|
_vm.CipherId = cipherId;
|
2020-03-28 16:16:28 +03:00
|
|
|
|
if (Device.RuntimePlatform == Device.Android)
|
2019-06-12 04:31:51 +03:00
|
|
|
|
{
|
|
|
|
|
ToolbarItems.RemoveAt(0);
|
|
|
|
|
}
|
2019-05-02 21:53:45 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override async void OnAppearing()
|
|
|
|
|
{
|
|
|
|
|
base.OnAppearing();
|
|
|
|
|
await LoadOnAppearedAsync(_mainLayout, true, async () => {
|
|
|
|
|
await _vm.InitAsync();
|
|
|
|
|
});
|
|
|
|
|
}
|
2019-06-12 04:31:51 +03:00
|
|
|
|
|
|
|
|
|
private async void Close_Clicked(object sender, System.EventArgs e)
|
|
|
|
|
{
|
2020-03-28 16:16:28 +03:00
|
|
|
|
if (DoOnce())
|
2019-06-12 04:31:51 +03:00
|
|
|
|
{
|
|
|
|
|
await Navigation.PopModalAsync();
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-05-02 21:53:45 +03:00
|
|
|
|
}
|
|
|
|
|
}
|