public void SetPasswordStart() { var lockController = new CPLockController { Style = PincodeBinding.CPLockControllerStyle.TypeSet }; lockController.ModalPresentationStyle = UIModalPresentationStyle.FormSheet; var passwordDelegate = this.ObjectFactory.Create <PincodeSetPasswordDelegate>(); passwordDelegate.Finished += (sender, args) => { this.SessionContext.Password = args.Pincode; this.ConfigurationEnd(); }; passwordDelegate.Cancelled += (sender, args) => this.ShowMessage("Configuration", "You must choose a password"); lockController.Delegate = passwordDelegate; this.window.RootViewController.PresentModalViewController(lockController, true); }
public void SetPasswordStart() { var lockController = new CPLockController { Style = PincodeBinding.CPLockControllerStyle.TypeSet }; lockController.ModalPresentationStyle = UIModalPresentationStyle.FormSheet; var passwordDelegate = this.ObjectFactory.Create<PincodeSetPasswordDelegate>(); passwordDelegate.Finished += (sender, args) => { this.SessionContext.Password = args.Pincode; this.ConfigurationEnd(); }; passwordDelegate.Cancelled += (sender, args) => this.ShowMessage("Configuration", "You must choose a password"); lockController.Delegate = passwordDelegate; this.window.RootViewController.PresentModalViewController (lockController, true); }