public override void ViewDidLoad() { try { base.ViewDidLoad(); LogoText.Text = LangEnglish.LogoText; LoginEmailText.Text = LangEnglish.LoginEmail; LoginPasswordText.Text = LangEnglish.LoginPassword; LoginDone.SetTitle(LangEnglish.LoginDone, UIControlState.Normal); ResetPassword.SetTitle(LangEnglish.ResetPassword, UIControlState.Normal); ResetEmailText.Text = LangEnglish.ResetEmail; ResetSendButton.SetTitle(LangEnglish.ResetSend, UIControlState.Normal); RegisterButton.SetTitle(LangEnglish.RegisterButton, UIControlState.Normal); ListButton.SetTitle(LangEnglish.ListButton, UIControlState.Normal); LoginDone.Layer.MasksToBounds = true; ResetPassword.Layer.MasksToBounds = true; ResetSendButton.Layer.MasksToBounds = true; RegisterButton.Layer.MasksToBounds = true; ListButton.Layer.MasksToBounds = true; c.CollapseY(ResetSection); resetSectionVisible = false; c.AddViews(Snackbar, Snackbar.SnackText, Snackbar.SnackButton); LoginPassword.Delegate = this; LoginDone.TouchUpInside += LoginDone_Click; ResetPassword.TouchUpInside += ResetPassword_Click; ResetEmail.Delegate = this; ResetSendButton.TouchUpInside += ResetSendButton_Click; RegisterButton.TouchUpInside += RegisterButton_Click; ListButton.TouchUpInside += ListButton_Click; RoundBottom_Base = RoundBottom; Snackbar_Base = Snackbar; BottomConstraint_Base = BottomConstraint; SnackTopConstraint_Base = SnackTopConstraint; SnackBottomConstraint_Base = SnackBottomConstraint; } catch (Exception ex) { c.ReportErrorSilent(ex.Message + Environment.NewLine + ex.StackTrace); } }
void ReleaseDesignerOutlets() { if (BottomConstraint != null) { BottomConstraint.Dispose(); BottomConstraint = null; } if (ListButton != null) { ListButton.Dispose(); ListButton = null; } if (LoginDone != null) { LoginDone.Dispose(); LoginDone = null; } if (LoginEmail != null) { LoginEmail.Dispose(); LoginEmail = null; } if (LoginEmailText != null) { LoginEmailText.Dispose(); LoginEmailText = null; } if (LoginPassword != null) { LoginPassword.Dispose(); LoginPassword = null; } if (LoginPasswordText != null) { LoginPasswordText.Dispose(); LoginPasswordText = null; } if (LogoText != null) { LogoText.Dispose(); LogoText = null; } if (RegisterButton != null) { RegisterButton.Dispose(); RegisterButton = null; } if (ResetEmail != null) { ResetEmail.Dispose(); ResetEmail = null; } if (ResetEmailText != null) { ResetEmailText.Dispose(); ResetEmailText = null; } if (ResetPassword != null) { ResetPassword.Dispose(); ResetPassword = null; } if (ResetSection != null) { ResetSection.Dispose(); ResetSection = null; } if (ResetSendButton != null) { ResetSendButton.Dispose(); ResetSendButton = null; } if (RoundBottom != null) { RoundBottom.Dispose(); RoundBottom = null; } if (Snackbar != null) { Snackbar.Dispose(); Snackbar = null; } if (SnackBottomConstraint != null) { SnackBottomConstraint.Dispose(); SnackBottomConstraint = null; } if (SnackTopConstraint != null) { SnackTopConstraint.Dispose(); SnackTopConstraint = null; } }