Beispiel #1
0
        protected override void OnDisappearing()
        {
            base.OnDisappearing();
            PasswordCell?.Dispose();
            TotpCell?.Dispose();
            UsernameCell?.Dispose();
            UriCell?.Dispose();
            NameCell?.Dispose();
            NotesCell?.Dispose();
            FolderCell?.Dispose();

            if (PasswordCell?.Button != null)
            {
                PasswordCell.Button.Clicked -= PasswordButton_Clicked;
            }
            if (TotpCell?.Button != null)
            {
                TotpCell.Button.Clicked -= TotpButton_Clicked;
            }
            if (GenerateCell != null)
            {
                GenerateCell.Tapped -= GenerateCell_Tapped;
            }
            if (DeleteCell != null)
            {
                DeleteCell.Tapped -= DeleteCell_Tapped;
            }
        }
Beispiel #2
0
 protected override void OnDisappearing()
 {
     base.OnDisappearing();
     PasswordCell.Dispose();
     UsernameCell.Dispose();
     UriCell.Dispose();
     NameCell.Dispose();
     NotesCell.Dispose();
     TotpCell.Dispose();
     FolderCell.Dispose();
     PasswordCell.Button.Clicked -= PasswordButton_Clicked;
     TotpCell.Button.Clicked     -= TotpButton_Clicked;
     GenerateCell.Tapped         -= GenerateCell_Tapped;
 }