mirror of
https://github.com/bitwarden/android.git
synced 2025-01-01 05:48:34 +03:00
28 lines
965 B
C#
28 lines
965 B
C#
using System;
|
|
using UIKit;
|
|
|
|
namespace Bit.iOS.Autofill
|
|
{
|
|
public partial class PasswordGeneratorViewController : Core.Controllers.PasswordGeneratorViewController
|
|
{
|
|
public PasswordGeneratorViewController(IntPtr handle)
|
|
: base(handle)
|
|
{ }
|
|
|
|
public LoginAddViewController Parent { get; set; }
|
|
public override UINavigationItem BaseNavItem => NavItem;
|
|
public override UIBarButtonItem BaseCancelButton => CancelBarButton;
|
|
public override UIBarButtonItem BaseSelectBarButton => SelectBarButton;
|
|
public override UILabel BasePasswordLabel => PasswordLabel;
|
|
|
|
partial void SelectBarButton_Activated(UIBarButtonItem sender)
|
|
{
|
|
DismissViewController(true, () => Parent.PasswordCell.TextField.Text = PasswordLabel.Text);
|
|
}
|
|
|
|
partial void CancelBarButton_Activated(UIBarButtonItem sender)
|
|
{
|
|
DismissViewController(true, null);
|
|
}
|
|
}
|
|
}
|