Пример #1
0
		public override void ViewWillAppear (bool animation)
		{
			base.ViewWillAppear (animation);
			this.tcNavi = TCNavigationBar.DefaultBar (this);
			this.tcNavi.build (false, false);
			this.tcNavi.showTitle ("");

			if (this.SelectedViewController is TCSearchSpecialistViewController) {
				TCNotificationCenter.defaultCenter.postNotification (MConstants.kPostUpdateNavigationBarOfSearch, null);
			}
		}
		public override void createNavigationBar ()
		{
			this.tcNavi = TCNavigationBar.DefaultBar (this);
			if (MApplication.getInstance ().isRequired) {
				this.tcNavi.build (true, true);
			} else {
				this.tcNavi.build (false, true);
			}

			tcNavi.showFilterButton ();

			if (!this.resultView.Hidden || this.specialists.Count > 0) {
				changeTitle (TCLocalizabled.getText ("TextTitleSearchResultSpecialist"));
			} else {
				changeTitle (TCLocalizabled.getText ("TitleScreenSearchSpecialist"));
				this.tcNavi.disableFilter ();
			}

			if (this.specialists.Count > 1) {
				this.tcNavi.enableFilter ();
			}
		}
		private void decorateUI ()
		{
			this.tcNavi = TCNavigationBar.DefaultBar (this);

			this.viewSearchBar.Layer.BorderWidth = 1.0f;
			this.viewSearchBar.Layer.BorderColor = TCTheme.getInstance.getThemeColor (Theme.BorderControl).CGColor;
			this.lineWarning.BackgroundColor = TCTheme.getInstance.getThemeColor (Theme.BorderControl);

			if (TCGlobals.getInstance.searchFromDashboard) {
				CGRect tFrameTable = this.tableView.Frame;
				this.tableView.Frame = new CGRect (tFrameTable.X, tFrameTable.Y, tFrameTable.Width, tFrameTable.Height - 45.0f);
			}

			this.frameTable = this.tableView.Frame;
		}
		public static TCNavigationBar DefaultBar (UIViewController controller)
		{
			if (instance == null)
				instance = new TCNavigationBar (controller);
			else {
				instance.controller = controller;
			}

			return instance;
		}