public void sendFailure (TCSendEmailHelper self, string title, string message) { if (this.Delegate != null) { this.Delegate.emailProfileComponentFailure (this, title, message); } }
public void sendSuccess (TCSendEmailHelper self, string title, string message) { if (this.Delegate != null) { this.Delegate.emailProfileComponentSuccess (this, title, message); } this.View.RemoveFromSuperview (); this.RemoveFromParentViewController (); }
public void beginSendEmailRequest(TCSendEmailHelper self) { this.loadingView.show (); if (this.Delegate != null) { this.Delegate.beginSendEmailProfileRequest (this); } }
public void finishSendEmailRequest(TCSendEmailHelper self) { this.loadingView.dismiss (); if (this.Delegate != null) { this.Delegate.finishSendEmailProfileRequest (this); } }
partial void oKClicked (NSObject sender) { this.tvEmail.ResignFirstResponder (); this.tvMessage.ResignFirstResponder (); if (this.tfYourEmail.Text.Trim ().Equals("")) { MUtils.showAlert(this, TCLocalizabled.getText("TitleAlert"), TCLocalizabled.getText("WarningYourEmailRequired")); return; } else if (!CoreSystem.Utils.checkValidateEmail (this.tfYourEmail.Text.Trim ())) { MUtils.showAlert(this, TCLocalizabled.getText("TitleAlert"), TCLocalizabled.getText("WarningInvalidEmail")); return; } if (this.parentController != null && this.Delegate != null) { this.parentController.InvokeOnMainThread (delegate { this.Delegate.beginSendEmailProfileRequest (this); }); } TCSendEmailHelper sendEmailHelper = new TCSendEmailHelper (this.parentController); sendEmailHelper.Delegate = this; string message = this.tvMessage.Text.Equals(TCLocalizabled.getText("TextPlaceholderEmailMessage")) ? "" : this.tvMessage.Text; sendEmailHelper.send (this.specialistId, this.tvEmail.Text, this.tfYourEmail.Text, message); }