mirror of
https://github.com/bitwarden/mobile.git
synced 2024-06-23 10:04:49 +02:00
* Added account deletion feature on settings * Disabled using Microsoft.AppCenter.Crashes for FDroid * Moved drawable on Android.csproj to be with the others Co-authored-by: Federico Maccaroni <fmaccaroni@bitwarden.com>
34 lines
759 B
C#
34 lines
759 B
C#
using System;
|
|
using Xamarin.Forms;
|
|
|
|
namespace Bit.App.Pages.Accounts
|
|
{
|
|
public partial class DeleteAccountPage : BaseContentPage
|
|
{
|
|
DeleteAccountViewModel _vm;
|
|
|
|
public DeleteAccountPage()
|
|
{
|
|
InitializeComponent();
|
|
_vm = BindingContext as DeleteAccountViewModel;
|
|
_vm.Page = this;
|
|
}
|
|
|
|
private async void Close_Clicked(object sender, EventArgs e)
|
|
{
|
|
if (DoOnce())
|
|
{
|
|
await Navigation.PopModalAsync();
|
|
}
|
|
}
|
|
|
|
private async void DeleteAccount_Clicked(object sender, EventArgs e)
|
|
{
|
|
if (DoOnce())
|
|
{
|
|
await _vm.DeleteAccountAsync();
|
|
}
|
|
}
|
|
}
|
|
}
|