Ejemplo n.º 1
0
		RootElement CreateRoot ()
		{
			email = new MyEntryElement ("e-mail", null);
			pseudo = new MyEntryElement ("username", null);
			pass = new MyEntryElement ("password", null, true);
			emptyImage = UIImage.FromBundle("Images/Login/emptyProfile.png");
			
			/*
			var ise = new PhotoStringElement("image profile", 
				UIImage.FromBundle("Images/Login/emptyProfile.png").resizeImage(new SizeF(30, 30)));
			
			ise.OnExited += ()=>
			{
				_dialogView.View.Frame = new System.Drawing.RectangleF (0, 40, 320, 420);
			};
			*/
			
			photo = new PhotoElement (emptyImage);//.resizeImage(new SizeF(48, 43)));
			photo.OnEntered+= ()=>
			{
				lineView.Hidden = true;
			};
			photo.OnExited += ()=>
			{
				_dialogView.View.Frame = new System.Drawing.RectangleF (0, 40, 320, 420);
				lineView.Hidden = false;
			};
			
			var root = new RootElement ("post") { new Section { email, pseudo, pass }, 
				new Section { photo }
			  } ;
						
			return root;
		}
Ejemplo n.º 2
0
			public MyDelegate (PhotoElement container, UITableView table, NSIndexPath path)
			{
				this.container = container;
				this.table = table;
				this.path = path;
			}
Ejemplo n.º 3
0
		RootElement CreatePreferencesSection ()
		{
			email = new EntryElement ("e-mail:", "", _userInfo.Email);
			pseudo = new EntryElement ("username:"******"", AppDelegateIPhone.AIphone.MainUser.Name);
			
			
			UIFont font = UIFont.FromName ("HelveticaNeue", 12);
			shareMyPosts = new CustomBooleanElement ("Everybody can share my posts", false, font);
			
			int userId = AppDelegateIPhone.AIphone.MainUser.Id;
			
			UIImage img = ImageStore.GetLocalFullPicture(userId, userId, SizeDB.SizeProfil);			
			var photo = new PhotoElement (img);
			photo.OnExited += ()=>
			{
				_dialogView.View.Frame = new System.Drawing.RectangleF (0, 40, 320, 420);
			};
			
			return new RootElement ("my profile"){
				new Section ("Profile") {
					email,
					pseudo,					
				},
				new Section ("Preferences") {
					shareMyPosts,
				}
			};
		}