2018-09-21 05:24:13 +03:00
|
|
|
using System;
|
|
|
|
using UIKit;
|
|
|
|
|
2018-09-21 05:53:23 +03:00
|
|
|
namespace Bit.iOS.Autofill
|
2018-09-21 05:24:13 +03:00
|
|
|
{
|
|
|
|
public partial class LockPasswordViewController : Core.Controllers.LockPasswordViewController
|
|
|
|
{
|
|
|
|
public LockPasswordViewController(IntPtr handle) : base(handle)
|
|
|
|
{ }
|
|
|
|
|
2018-09-21 05:53:23 +03:00
|
|
|
public CredentialProviderViewController CPViewController { get; set; }
|
2018-09-21 05:24:13 +03:00
|
|
|
public override UINavigationItem BaseNavItem => NavItem;
|
|
|
|
public override UIBarButtonItem BaseCancelButton => CancelButton;
|
|
|
|
public override UIBarButtonItem BaseSubmitButton => SubmitButton;
|
2018-09-21 05:53:23 +03:00
|
|
|
public override Action Success => () => CPViewController.DismissLockAndContinue();
|
2018-09-21 05:24:13 +03:00
|
|
|
|
|
|
|
partial void SubmitButton_Activated(UIBarButtonItem sender)
|
|
|
|
{
|
|
|
|
CheckPassword();
|
|
|
|
}
|
|
|
|
|
|
|
|
partial void CancelButton_Activated(UIBarButtonItem sender)
|
|
|
|
{
|
2018-09-21 05:53:23 +03:00
|
|
|
CPViewController.CompleteRequest();
|
2018-09-21 05:24:13 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|