Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override void ViewDidLoad ()
- {
- scroll = new UIScrollView(new System.Drawing.RectangleF (0, 0, 350, 100))
- {
- ScrollEnabled=true
- };
- this.View.AddSubview(scroll);
- // Server erstellen & verbinden
- createServer ();
- // Get All the Actors
- ActorList = Room.getActorList ();
- // Inital Height
- int height = 10;
- // Set the Room- Name
- Title = Room.Name;
- // UI Erstellung je nach Typ
- foreach (var act in ActorList) {
- switch (act.Type) {
- case "temp":
- //Maybe an Image in Advance
- UILabel temperature = new UILabel(new System.Drawing.RectangleF (5, height, 250, 20));
- temperature.Text = "Temperatur:_ _";
- this.scroll.AddSubview(temperature);
- //View.AddSubview(temperature);
- height = height + 30;
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement