public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			loadingView = new TCLoadingOverlay (this.NavigationController, true, false);
			loadingView.build ();
			if (this.RespondsToSelector (new Selector ("setAutomaticallyAdjustsScrollViewInsets:"))) {
				this.AutomaticallyAdjustsScrollViewInsets = false;
			}
				
			// Perform any additional setup after loading the view, typically from a nib.
			this.NavigationController.NavigationBar.TopItem.Title = "";
			this.isTalkNow = false;
			decorateUI ();

			if (MApplication.getInstance().isLogedIn && !specialistInfo.isLoaded) {
				this.loadingView.show ();
				TCProfileSpecialistHelper profileHelper = new TCProfileSpecialistHelper (this);
				profileHelper.Delegate = this;
				profileHelper.getProfile (this.specialistInfo.Account.Id);
			} else {
				initBookView (this.specialistInfo);
				initActionView (this.specialistInfo);
				loadInfoSpecialist (this.specialistInfo);
			}
		}
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			// Perform any additional setup after loading the view, typically from a nib.
			TCNotificationCenter.defaultCenter.addObserver (this, CoreSystem.Constants.kPostUploadFileSuccess, updateFileUploaded);
			TCNotificationCenter.defaultCenter.addObserver (this, Constants.kPostDeleteFileSuccess, updateFileDeleted);

			this.addFileHelper = new TCFileManagerHelper (this);
			this.addFileHelper.Delegate = this;

			this.frameViewWaiveFee = this.viewWaiveFee.Frame;
			this.isTalkNow = false;

			if (this.bookingInfo.PastBooking != null)
				this.iCallId = this.bookingInfo.PastBooking.CallId;

			if (MApplication.getInstance ().isConsultant) {
				initActionView (this.specialistInfo);
				this.loadingView.show ();
				loadLatsetBookingInfo ();
			} else {
				if (this.specialistInfo == null) {
					this.loadingView.show ();
					TCProfileSpecialistHelper profileHelper = new TCProfileSpecialistHelper (this);
					profileHelper.Delegate = this;
					profileHelper.getProfile (this.bookingInfo.SpecialistId);
				} else {
					initBookView (this.specialistInfo);
				}
			}
				
			this.imageRating.Image = MUtils.getRatingImage (this.bookingInfo.Rating);

			setUpWaive ();
			setupDataUI ();
		}
Example #3
0
		public void getProfileFail (TCProfileSpecialistHelper helper)
		{
			if (this.Delegate != null) {
				this.Delegate.finishBookRequest ();
			}
		}
Example #4
0
		public void getProfileSuccess (TCProfileSpecialistHelper helper, SpecialistProfileInfos info)
		{
			this.specialistInfo = info;
			initInfoSpecialist (this.specialistInfo);
			if (this.Delegate != null) {
				this.Delegate.bookRefreshData (info);
				this.Delegate.finishBookRequest ();
			}
		}
Example #5
0
		public void authenticationSuccess ()
		{
			// Refresh data specialist profile
			if (!MApplication.getInstance ().isConsultant) {
				if (this.Delegate != null)
					this.Delegate.beginBookRequest ();
			
				TCProfileSpecialistHelper profileHelper = new TCProfileSpecialistHelper (this.parentController);
				profileHelper.Delegate = this;
				profileHelper.getProfile (this.specialistInfo.Account.Id);
			}
		}
		public void getProfileFail (TCProfileSpecialistHelper helper)
		{
			this.loadingView.dismiss ();
			TCAlertViewController alert = new TCAlertViewController (this, TCLocalizabled.getText ("TitleAlertNotice"), TCLocalizabled.getText ("TextMessageNotReceiveConfig"), null, null, TCLocalizabled.getText ("OkTitle"));
			alert.Delegate = this;
			alert.display ();
		}
		public void getProfileSuccess (TCProfileSpecialistHelper helper, SpecialistProfileInfos info)
		{
			this.specialistInfo = info;

			initActionView (this.specialistInfo);
			initBookView (this.specialistInfo);

			loadLatsetBookingInfo ();
		}
		public void getProfileSuccess (TCProfileSpecialistHelper helper, SpecialistProfileInfos info)
		{
			this.specialistInfo = info;
			this.specialistInfo.isLoaded = true;
			initBookView (this.specialistInfo);
			initActionView (this.specialistInfo);
			loadInfoSpecialist (this.specialistInfo);

			this.loadingView.dismiss ();
			TCSearchSpecialistViewController searchSpecialistVC = (TCSearchSpecialistViewController)TCViewIdentity.getInstance.getObjectForKey ("TCSearchSpecialistViewController");
			TCNotificationCenter.defaultCenter.postNotification(MUtils.generateKeySearchSpecialist (searchSpecialistVC), this.specialistInfo);
		}
Example #9
0
		public void getProfileFail (TCProfileSpecialistHelper helper)
		{
			if (this.Delegate != null) {
				this.Delegate.finishActionRequest (this, ACTION_INDEX.DEFAULT);
			}
		}
Example #10
0
		public void getProfileSuccess (TCProfileSpecialistHelper helper, SpecialistProfileInfos info)
		{
			if (this.Delegate != null) {
				this.Delegate.actionRefreshData (this, info);
				this.Delegate.finishActionRequest (this, ACTION_INDEX.DEFAULT);
			}
		}