protected override void OnAppearing() { base.OnAppearing(); if (!_connectivity.IsConnected) { AlertNoConnection(); } PasswordCell?.InitEvents(); UsernameCell?.InitEvents(); UriCell?.InitEvents(); NameCell?.InitEvents(); NotesCell?.InitEvents(); FolderCell?.InitEvents(); if (PasswordCell?.Button != null) { PasswordCell.Button.Clicked += PasswordButton_Clicked; } if (GenerateCell != null) { GenerateCell.Tapped += GenerateCell_Tapped; } if (DeleteCell != null) { DeleteCell.Tapped += DeleteCell_Tapped; } }
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; } }
protected override void OnAppearing() { base.OnAppearing(); if (!_connectivity.IsConnected) { AlertNoConnection(); } PasswordCell.InitEvents(); UsernameCell.InitEvents(); UriCell.InitEvents(); NameCell.InitEvents(); NotesCell.InitEvents(); FolderCell.InitEvents(); PasswordCell.Button.Clicked += PasswordButton_Clicked; GenerateCell.Tapped += GenerateCell_Tapped; if (!_fromAutofill && !_settings.GetValueOrDefault(AddedLoginAlertKey, false)) { _settings.AddOrUpdateValue(AddedLoginAlertKey, true); if (Device.OS == TargetPlatform.iOS) { DisplayAlert(AppResources.BitwardenAppExtension, AppResources.BitwardenAppExtensionAlert, AppResources.Ok); } else if (Device.OS == TargetPlatform.Android && !_appInfoService.AutofillServiceEnabled) { DisplayAlert(AppResources.BitwardenAutofillService, AppResources.BitwardenAutofillServiceAlert, AppResources.Ok); } } }
protected override void OnDisappearing() { base.OnDisappearing(); NameCell.Dispose(); NotesCell.Dispose(); FolderCell.Dispose(); switch (_type) { case CipherType.Login: LoginTotpCell.Dispose(); LoginPasswordCell.Dispose(); LoginUsernameCell.Dispose(); LoginUriCell.Dispose(); LoginPasswordCell.Button.Clicked -= PasswordButton_Clicked; LoginGenerateCell.Tapped -= GenerateCell_Tapped; if (LoginTotpCell?.Button != null) { LoginTotpCell.Button.Clicked -= TotpButton_Clicked; } break; case CipherType.Card: CardBrandCell.Dispose(); CardCodeCell.Dispose(); CardExpMonthCell.Dispose(); CardExpYearCell.Dispose(); CardNameCell.Dispose(); CardNumberCell.Dispose(); break; case CipherType.Identity: IdTitleCell.Dispose(); IdFirstNameCell.Dispose(); IdMiddleNameCell.Dispose(); IdLastNameCell.Dispose(); IdUsernameCell.Dispose(); IdCompanyCell.Dispose(); IdSsnCell.Dispose(); IdPassportNumberCell.Dispose(); IdLicenseNumberCell.Dispose(); IdEmailCell.Dispose(); IdPhoneCell.Dispose(); IdAddress1Cell.Dispose(); IdAddress2Cell.Dispose(); IdAddress3Cell.Dispose(); IdCityCell.Dispose(); IdStateCell.Dispose(); IdPostalCodeCell.Dispose(); IdCountryCell.Dispose(); break; default: break; } }
void ReleaseDesignerOutlets() { if (AdditionalValueCell != null) { AdditionalValueCell.Dispose(); AdditionalValueCell = null; } if (AdditionalValueSymbolCell != null) { AdditionalValueSymbolCell.Dispose(); AdditionalValueSymbolCell = null; } if (DivisionCell != null) { DivisionCell.Dispose(); DivisionCell = null; } if (MachineIconCell != null) { MachineIconCell.Dispose(); MachineIconCell = null; } if (MachineStateIconCell != null) { MachineStateIconCell.Dispose(); MachineStateIconCell = null; } if (MainValueCell != null) { MainValueCell.Dispose(); MainValueCell = null; } if (MainValueSymbolCell != null) { MainValueSymbolCell.Dispose(); MainValueSymbolCell = null; } if (NameCell != null) { NameCell.Dispose(); NameCell = null; } if (SensorIconCell != null) { SensorIconCell.Dispose(); SensorIconCell = null; } }
protected override void OnAppearing() { base.OnAppearing(); NameCell.InitEvents(); DeleteCell.Tapped += DeleteCell_Tapped; if (!_connectivity.IsConnected) { AlertNoConnection(); } }
protected override void OnDisappearing() { base.OnDisappearing(); PasswordCell.Dispose(); UsernameCell.Dispose(); UriCell.Dispose(); NameCell.Dispose(); NotesCell.Dispose(); FolderCell.Dispose(); PasswordCell.Button.Clicked -= PasswordButton_Clicked; GenerateCell.Tapped -= GenerateCell_Tapped; }
public OrganiserXml Clone() { var returnVar = new OrganiserXml(); if (NameCell != null) { returnVar.NameCell = (Draw.TableCell)NameCell.CloneNode(true); } if (RoleCell != null) { returnVar.RoleCell = (Draw.TableCell)RoleCell.CloneNode(true); } return(returnVar); }
public void SetText(string Name, string Role) { if (NameCell != null) { foreach (var t in NameCell.Descendants <Draw.Text>()) { t.Text = t.Text.Replace(organiserName, Name); } } if (RoleCell != null) { foreach (var t in RoleCell.Descendants <Draw.Text>()) { t.Text = t.Text.Replace(organiserRole, Role); } } }
protected override void OnDisappearing() { base.OnDisappearing(); NameCell.Dispose(); DeleteCell.Tapped -= DeleteCell_Tapped; }
protected override void OnAppearing() { base.OnAppearing(); if (!_connectivity.IsConnected) { AlertNoConnection(); } NameCell.InitEvents(); NotesCell.InitEvents(); FolderCell.InitEvents(); if (AttachmentsCell != null) { AttachmentsCell.Tapped += AttachmentsCell_Tapped; } if (CustomFieldsCell != null) { CustomFieldsCell.Tapped += CustomFieldsCell_Tapped; } DeleteCell.Tapped += DeleteCell_Tapped; switch (Cipher.Type) { case CipherType.Login: LoginPasswordCell.InitEvents(); LoginUsernameCell.InitEvents(); LoginUriCell.InitEvents(); LoginTotpCell.InitEvents(); LoginPasswordCell.Button.Clicked += PasswordButton_Clicked; LoginGenerateCell.Tapped += GenerateCell_Tapped; if (LoginTotpCell?.Button != null) { LoginTotpCell.Button.Clicked += TotpButton_Clicked; } break; case CipherType.Card: CardBrandCell.InitEvents(); CardCodeCell.InitEvents(); CardExpMonthCell.InitEvents(); CardExpYearCell.InitEvents(); CardNameCell.InitEvents(); CardNumberCell.InitEvents(); break; case CipherType.Identity: IdTitleCell.InitEvents(); IdFirstNameCell.InitEvents(); IdMiddleNameCell.InitEvents(); IdLastNameCell.InitEvents(); IdUsernameCell.InitEvents(); IdCompanyCell.InitEvents(); IdSsnCell.InitEvents(); IdPassportNumberCell.InitEvents(); IdLicenseNumberCell.InitEvents(); IdEmailCell.InitEvents(); IdPhoneCell.InitEvents(); IdAddress1Cell.InitEvents(); IdAddress2Cell.InitEvents(); IdAddress3Cell.InitEvents(); IdCityCell.InitEvents(); IdStateCell.InitEvents(); IdPostalCodeCell.InitEvents(); IdCountryCell.InitEvents(); break; default: break; } }
protected override void OnDisappearing() { base.OnDisappearing(); NameCell?.Dispose(); NotesCell?.Dispose(); FolderCell?.Dispose(); if (AttachmentsCell != null) { AttachmentsCell.Tapped -= AttachmentsCell_Tapped; } if (DeleteCell != null) { DeleteCell.Tapped -= DeleteCell_Tapped; } if (AddFieldCell != null) { AddFieldCell.Tapped -= AddFieldCell_Tapped; } if (AddUriCell != null) { AddUriCell.Tapped -= AddUriCell_Tapped; } switch (Cipher.Type) { case CipherType.Login: LoginTotpCell?.Dispose(); LoginPasswordCell?.Dispose(); LoginUsernameCell?.Dispose(); if (LoginPasswordCell?.Button1 != null) { LoginPasswordCell.Button1.Clicked -= PasswordButton_Clicked; } if (LoginPasswordCell?.Button2 != null) { LoginPasswordCell.Button2.Clicked -= PasswordButton2_Clicked; } if (LoginTotpCell?.Button1 != null) { LoginTotpCell.Button1.Clicked -= TotpButton_Clicked; } break; case CipherType.Card: CardBrandCell?.Dispose(); CardCodeCell?.Dispose(); CardExpMonthCell?.Dispose(); CardExpYearCell?.Dispose(); CardNameCell?.Dispose(); CardNumberCell?.Dispose(); if (CardCodeCell?.Button1 != null) { CardCodeCell.Button1.Clicked -= CardCodeButton_Clicked; } break; case CipherType.Identity: IdTitleCell?.Dispose(); IdFirstNameCell?.Dispose(); IdMiddleNameCell?.Dispose(); IdLastNameCell?.Dispose(); IdUsernameCell?.Dispose(); IdCompanyCell?.Dispose(); IdSsnCell?.Dispose(); IdPassportNumberCell?.Dispose(); IdLicenseNumberCell?.Dispose(); IdEmailCell?.Dispose(); IdPhoneCell?.Dispose(); IdAddress1Cell?.Dispose(); IdAddress2Cell?.Dispose(); IdAddress3Cell?.Dispose(); IdCityCell?.Dispose(); IdStateCell?.Dispose(); IdPostalCodeCell?.Dispose(); IdCountryCell?.Dispose(); break; default: break; } Helpers.DisposeSectionEvents(FieldsSection); Helpers.DisposeSectionEvents(UrisSection); }
protected override void OnAppearing() { base.OnAppearing(); if (!_connectivity.IsConnected) { AlertNoConnection(); } NameCell.InitEvents(); NotesCell.InitEvents(); FolderCell.InitEvents(); switch (_type) { case CipherType.Login: LoginPasswordCell.InitEvents(); LoginUsernameCell.InitEvents(); LoginUriCell.InitEvents(); LoginTotpCell.InitEvents(); LoginPasswordCell.Button.Clicked += PasswordButton_Clicked; LoginGenerateCell.Tapped += GenerateCell_Tapped; if (LoginTotpCell?.Button != null) { LoginTotpCell.Button.Clicked += TotpButton_Clicked; } break; case CipherType.Card: CardBrandCell.InitEvents(); CardCodeCell.InitEvents(); CardExpMonthCell.InitEvents(); CardExpYearCell.InitEvents(); CardNameCell.InitEvents(); CardNumberCell.InitEvents(); break; case CipherType.Identity: IdTitleCell.InitEvents(); IdFirstNameCell.InitEvents(); IdMiddleNameCell.InitEvents(); IdLastNameCell.InitEvents(); IdUsernameCell.InitEvents(); IdCompanyCell.InitEvents(); IdSsnCell.InitEvents(); IdPassportNumberCell.InitEvents(); IdLicenseNumberCell.InitEvents(); IdEmailCell.InitEvents(); IdPhoneCell.InitEvents(); IdAddress1Cell.InitEvents(); IdAddress2Cell.InitEvents(); IdAddress3Cell.InitEvents(); IdCityCell.InitEvents(); IdStateCell.InitEvents(); IdPostalCodeCell.InitEvents(); IdCountryCell.InitEvents(); break; default: break; } if (_type == CipherType.Login && !_fromAutofill && !_settings.GetValueOrDefault(AddedLoginAlertKey, false)) { _settings.AddOrUpdateValue(AddedLoginAlertKey, true); if (Device.RuntimePlatform == Device.iOS) { DisplayAlert(AppResources.BitwardenAppExtension, AppResources.BitwardenAppExtensionAlert, AppResources.Ok); } else if (Device.RuntimePlatform == Device.Android && !_appInfoService.AutofillAccessibilityServiceEnabled) { DisplayAlert(AppResources.BitwardenAutofillService, AppResources.BitwardenAutofillServiceAlert, AppResources.Ok); } } NameCell?.Entry.FocusWithDelay(); }
protected override void OnAppearing() { base.OnAppearing(); NameCell.InitEvents(); DeleteCell.Tapped += DeleteCell_Tapped; }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NameCell obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
protected override void OnAppearing() { base.OnAppearing(); NameCell.InitEvents(); NotesCell.InitEvents(); FolderCell.InitEvents(); if (AddFieldCell != null) { AddFieldCell.Tapped += AddFieldCell_Tapped; } if (AddUriCell != null) { AddUriCell.Tapped += AddUriCell_Tapped; } switch (_type) { case CipherType.Login: LoginPasswordCell.InitEvents(); LoginUsernameCell.InitEvents(); LoginTotpCell.InitEvents(); LoginPasswordCell.Button1.Clicked += PasswordButton_Clicked; LoginPasswordCell.Button2.Clicked += PasswordButton2_Clicked; if (LoginTotpCell?.Button1 != null) { LoginTotpCell.Button1.Clicked += TotpButton_Clicked; } break; case CipherType.Card: CardBrandCell.InitEvents(); CardCodeCell.InitEvents(); CardExpMonthCell.InitEvents(); CardExpYearCell.InitEvents(); CardNameCell.InitEvents(); CardNumberCell.InitEvents(); CardCodeCell.Button1.Clicked += CardCodeButton_Clicked; break; case CipherType.Identity: IdTitleCell.InitEvents(); IdFirstNameCell.InitEvents(); IdMiddleNameCell.InitEvents(); IdLastNameCell.InitEvents(); IdUsernameCell.InitEvents(); IdCompanyCell.InitEvents(); IdSsnCell.InitEvents(); IdPassportNumberCell.InitEvents(); IdLicenseNumberCell.InitEvents(); IdEmailCell.InitEvents(); IdPhoneCell.InitEvents(); IdAddress1Cell.InitEvents(); IdAddress2Cell.InitEvents(); IdAddress3Cell.InitEvents(); IdCityCell.InitEvents(); IdStateCell.InitEvents(); IdPostalCodeCell.InitEvents(); IdCountryCell.InitEvents(); break; default: break; } Helpers.InitSectionEvents(FieldsSection); Helpers.InitSectionEvents(UrisSection); if (_type == CipherType.Login && !_fromAutofill && !_settings.GetValueOrDefault(AddedLoginAlertKey, false)) { _settings.AddOrUpdateValue(AddedLoginAlertKey, true); if (Device.RuntimePlatform == Device.iOS) { if (_deviceInfo.Version < 12) { DisplayAlert(AppResources.BitwardenAppExtension, AppResources.BitwardenAppExtensionAlert, AppResources.Ok); } else { DisplayAlert(AppResources.PasswordAutofill, AppResources.BitwardenAutofillAlert, AppResources.Ok); } } else if (Device.RuntimePlatform == Device.Android && !_appInfoService.AutofillAccessibilityServiceEnabled) { DisplayAlert(AppResources.BitwardenAutofillService, AppResources.BitwardenAutofillServiceAlert, AppResources.Ok); } } if (NameCell != null && string.IsNullOrWhiteSpace(NameCell.Entry.Text)) { NameCell.Entry.FocusWithDelay(); } else if (LoginUsernameCell != null && string.IsNullOrWhiteSpace(LoginUsernameCell.Entry.Text)) { LoginUsernameCell.Entry.FocusWithDelay(); } }