private void RemovePassStorageButtonClicked(object sender, EventArgs eventArgs) { TextView SYSOutput = FindViewById <TextView>(Resource.Id.SystemOutput); String FileDir = Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryDocuments).Path; EditText WebsiteURL = FindViewById <EditText>(Resource.Id.WebsiteURL); String Ret = UIHandlingService.RemoveStorageSpecific(FileDir, WebsiteURL.Text); SYSOutput.Text = Ret; }
private void LookupPassStorageButtonClicked(object sender, EventArgs eventArgs) { String FileDir = Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryDocuments).Path; EditText EncryptDecryptCode = FindViewById <EditText>(Resource.Id.EncryptDecryptCode); EditText WebsiteURL = FindViewById <EditText>(Resource.Id.WebsiteURL); TextView SYSOutput = FindViewById <TextView>(Resource.Id.SystemOutput); TextView NumOfIterations = FindViewById <TextView>(Resource.Id.NumOfIterations); SYSOutput.Text = "Busy decrypting..."; String Ret = UIHandlingService.ReadPass(EncryptDecryptCode.Text, FileDir, WebsiteURL.Text, NumOfIterations.Text); WebsiteURL.Text = ""; SYSOutput.Text = Ret; }
private void SwipePassStorageButtonClicked(object sender, EventArgs eventArgs) { String FileDir = Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryDocuments).Path; TextView SYSOutput = FindViewById <TextView>(Resource.Id.SystemOutput); String Ret; string dialogResponse = AsyncHelpers.RunSync <string>(() => DisplayCustomDialog("Confirm delete", "Are you sure you want to delete all data?", "YES", "NO")); if (dialogResponse == "YES") { Ret = UIHandlingService.WipeAllPasses(FileDir); } else { Ret = "Operation cancelled"; } SYSOutput.Text = Ret; }