예제 #1
0
		private void HandleSearchBtnhandleTouchDown (object sender, EventArgs e)
		{
			_MSP.DismissModalViewControllerAnimated(true);
			
			var search = new SearchViewController(_MSP);
			_MSP.PushViewController(search, true);
		}
예제 #2
0
        partial void OpenSearch(UIBarButtonItem sender)
        {
            var searchViewController = new SearchViewController();

            searchViewController.OnSearch += (searchString) => RefreshData(true, searchString);
            NavigationController.PushViewController(searchViewController, true);
        }
예제 #3
0
        public MasterController()
        {
            List <Table>    ts = new List <Table>();
            List <Element>  es = new List <Element>();
            List <Relation> rs = new List <Relation>();

            this.hilfer           = new Hilfer(ts, es, rs);
            this.hilfer.relevEles = new List <RelevEle>();
            viewController        = new ViewController(this);
            elementController     = new ElementController();
            elementController.setMasterController(this);
            ioController = new IOController();
            ioController.setMasterController(this);
            tableController     = new TableController(this);
            relevEleController  = new RelevEleController(this);
            addElementViewModel = new AddElementViewModel();
            addElementViewModel.setMasterController(this);
            searchViewController = new SearchViewController();
            searchViewController.setMasterController(this);
            searchController = new SearchController();
            searchController.setMasterController(this);
        }
 public BeerDescriptionPreviewingDelegate (SearchViewController searchController)
 {
     // Initialize
     SearchController = searchController;
 }
        public SearchPlaceholderDataSource(SearchViewController viewController)
        {
			viewController = viewController;
        }
 public BeerDescriptionPreviewingDelegate(SearchViewController searchController)
 {
     // Initialize
     SearchController = searchController;
 }
예제 #7
0
		private RootElement CreateRoot ()
		{
			var searchElement = new CustomImageStringElement("search", ()=>
			{
				_MSP.DismissModalViewControllerAnimated(true);
			
				var search = new SearchViewController(_MSP);
				_MSP.PushViewController(search, true);
			}, Graphics.GetImgResource("search"));
			
			return new RootElement ("Settings") {
				new Section()
				{
					searchElement
				},
				new Section (){					
					new StringElement ("my posts", ()=>
	                   {
							Action act = ()=>
							{
								int userId = AppDelegateIPhone.AIphone.MainUser.Id;
								InvokeOnMainThread(()=>
			                    {
									var m = new MembersPhotoViewControler(AppDelegateIPhone.meNavigationController, userId, false);
									_MSP.PushViewController(m, true);
								});
							};
							AppDelegateIPhone.ShowRealLoading(View, "Loading posts", null, act);
						} 
					),
					new StringElement("facebook friends", ()=>
					{
						Action act = () => LoadFacebookFriends();
						AppDelegateIPhone.ShowRealLoading(null, "Loading facebook friends", null, act);
					}),
					new StringElement ("my profile", ()=>
					{
						Action act = ()=>
						{
							var userInfo = AppDelegateIPhone.AIphone.UsersServ.GetUserInfo(AppDelegateIPhone.AIphone.MainUser.Id);
							if (userInfo != null)
							{							
								InvokeOnMainThread(()=>
			                    {
									var pref = new PreferencesViewController(_MSP, userInfo);
									_MSP.PushViewController(pref, true);
								});
							}
						};
						AppDelegateIPhone.ShowRealLoading(View, "Loading my profile", null, act);
					}),					
					new StringElement ("other networks", ()=>
					{
						var vc = new SocialNetworksParentViewController(_MSP);
						_MSP.PushViewController(vc, true);
					}),
				},
				new Section(){
					new CustomHtmlElement("terms of service", "http://storage.21offserver.com:82/legal.html", _MSP),
					new CustomHtmlElement("help",  "http://storage.21offserver.com:82/help.html", _MSP),
					//"http://www.21off.net/help.html"
					//"http://www.21off.net/termsofservice.html"
					
				},
				
				new Section(){
					new StringElement("log out", () =>
	                {
						AppDelegateIPhone.AIphone.Logout();
						AppDelegateIPhone.AIphone.InitLoginPage();
					})
				}
					
			};
		}
예제 #8
0
 private void Awake()
 {
     Instance = this;
 }
예제 #9
0
 public SearchPlaceholderDataSource(SearchViewController viewController)
 {
     viewController = viewController;
 }