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 ();
		}
示例#3
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);
			}
		}