2019-07-02 19:15:00 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Bit.App.Pages
|
|
|
|
|
{
|
|
|
|
|
public partial class ExtensionPage : BaseContentPage
|
|
|
|
|
{
|
|
|
|
|
private readonly ExtensionPageViewModel _vm;
|
|
|
|
|
|
|
|
|
|
public ExtensionPage()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
_vm = BindingContext as ExtensionPageViewModel;
|
|
|
|
|
_vm.Page = this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected async override void OnAppearing()
|
|
|
|
|
{
|
|
|
|
|
base.OnAppearing();
|
|
|
|
|
await _vm.InitAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Show_Clicked(object sender, EventArgs e)
|
|
|
|
|
{
|
2020-03-28 14:16:28 +01:00
|
|
|
|
if (DoOnce())
|
2019-07-02 19:15:00 +02:00
|
|
|
|
{
|
|
|
|
|
_vm.ShowExtension();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Close_Clicked(object sender, EventArgs e)
|
|
|
|
|
{
|
2020-03-28 14:16:28 +01:00
|
|
|
|
if (DoOnce())
|
2019-07-02 19:15:00 +02:00
|
|
|
|
{
|
|
|
|
|
Navigation.PopModalAsync();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|