public override void ViewDidLoad() { base.ViewDidLoad(); AddNewParticipant.Layer.BorderWidth = 1.0f; AddNewParticipant.Layer.BorderColor = UIColor.FromRGB(.43f, .80f, .79f).CGColor; NavigationItem.Title = StringResources.participants_ui_dialog_add_title; ParticipantName.Placeholder = StringResources.register_ui_fullname_label; ParticipantEmail.Placeholder = StringResources.common_ui_forms_email_label; AddNewParticipant.SetTitle(StringResources.participants_ui_dialog_add_positive, UIControlState.Normal); ParticipantName.ShouldReturn += NavigateNext; ParticipantEmail.ShouldReturn += NavigateNext; ParticipantName.BecomeFirstResponder(); ErrorDialog = new Helpers.MessageDialog().BuildErrorMessageDialog("", ""); }
void ReleaseDesignerOutlets() { if (AddNewParticipant != null) { AddNewParticipant.Dispose(); AddNewParticipant = null; } if (ParticipantEmail != null) { ParticipantEmail.Dispose(); ParticipantEmail = null; } if (ParticipantName != null) { ParticipantName.Dispose(); ParticipantName = null; } }