2016-07-20 05:38:12 +03:00
|
|
|
using System;
|
|
|
|
using UIKit;
|
|
|
|
|
|
|
|
namespace Bit.iOS.Extension
|
|
|
|
{
|
2018-09-21 04:54:01 +03:00
|
|
|
public partial class LockPasswordViewController : Core.Controllers.LockPasswordViewController
|
2016-07-20 05:38:12 +03:00
|
|
|
{
|
|
|
|
public LockPasswordViewController(IntPtr handle) : base(handle)
|
|
|
|
{ }
|
|
|
|
|
2016-07-26 04:32:15 +03:00
|
|
|
public LoadingViewController LoadingController { get; set; }
|
2018-09-21 04:54:01 +03:00
|
|
|
public override UINavigationItem BaseNavItem => NavItem;
|
|
|
|
public override UIBarButtonItem BaseCancelButton => CancelButton;
|
|
|
|
public override UIBarButtonItem BaseSubmitButton => SubmitButton;
|
|
|
|
public override Action Success => () => LoadingController.DismissLockAndContinue();
|
2016-07-22 01:28:05 +03:00
|
|
|
|
|
|
|
partial void SubmitButton_Activated(UIBarButtonItem sender)
|
|
|
|
{
|
|
|
|
CheckPassword();
|
|
|
|
}
|
|
|
|
|
2016-07-20 05:38:12 +03:00
|
|
|
partial void CancelButton_Activated(UIBarButtonItem sender)
|
|
|
|
{
|
2016-07-26 04:32:15 +03:00
|
|
|
LoadingController.CompleteRequest(null);
|
2016-07-20 05:38:12 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|