private void decorateUI ()
		{
			this.TabBar.BarTintColor = UIColor.Black;
			this.TabBar.TintColor = UIColor.White;

			if (!MApplication.getInstance ().isConsultant) {
				tab2 = (TCSearchSpecialistViewController)this.Storyboard.InstantiateViewController ("TCSearchSpecialistViewController");
				tab3 = (TCListFavoriteViewController)this.Storyboard.InstantiateViewController ("TCListFavoriteViewController");
			}

			tab1 = (TCDashboardViewController)this.Storyboard.InstantiateViewController ("TCDashboardViewController");
			tab4 = (TCMyProfileViewController)this.Storyboard.InstantiateViewController ("TCMyProfileViewController");
			tab5 = (TCEmptyViewController)this.Storyboard.InstantiateViewController ("TCEmptyViewController");

			TCCommonTemplateViewController[] tabs;
			if (MApplication.getInstance ().isConsultant) {
				tabs = new TCCommonTemplateViewController[] { tab1, tab5, tab4 };
			} else {
				tabs = new TCCommonTemplateViewController[] { tab1, tab2, tab3, tab4 };
			}

			TCNotificationCenter.defaultCenter.postNotification (MConstants.kPostUpdateSizeSearchTable, null);

			this.ViewControllers = tabs;

			setColorForItem (this.ViewControllers.Length);
		}
Example #2
0
		public TCWebViewDelegate (TCCommonTemplateViewController vc)
		{
			this.controller = vc;
		}