protected override void OnAppearing() { base.OnAppearing(); Tgr.Tapped += Tgr_Tapped; RegenerateCell.Tapped += RegenerateCell_Tapped; CopyCell.Tapped += CopyCell_Tapped; SliderCell.InitEvents(); SpecialCell.OnChanged += SpecialCell_OnChanged; AvoidAmbiguousCell.OnChanged += AvoidAmbiguousCell_OnChanged; UppercaseCell.OnChanged += UppercaseCell_OnChanged; LowercaseCell.OnChanged += LowercaseCell_OnChanged; NumbersCell.OnChanged += NumbersCell_OnChanged; NumbersMinCell.InitEvents(); SpecialMinCell.InitEvents(); if (_fromAutofill) { _googleAnalyticsService.TrackExtensionEvent("GeneratedPassword"); } else { _googleAnalyticsService.TrackAppEvent("GeneratedPassword"); } Model.Password = _passwordGenerationService.GeneratePassword(); Model.Length = _settings.GetValueOrDefault(Constants.PasswordGeneratorLength, 10).ToString(); }
protected override void OnAppearing() { base.OnAppearing(); SpecialCell.OnChanged += SpecialCell_OnChanged; AvoidAmbiguousCell.OnChanged += AvoidAmbiguousCell_OnChanged; UppercaseCell.OnChanged += UppercaseCell_OnChanged; LowercaseCell.OnChanged += LowercaseCell_OnChanged; NumbersCell.OnChanged += NumbersCell_OnChanged; NumbersMinCell.InitEvents(); SpecialMinCell.InitEvents(); }