Esempio n. 1
0
        public TableSource(List<TableItem> items, HomeScreen owner)
        {
            this.owner = owner;

            indexedTableItems = new Dictionary<string, List<TableItem>>();
            foreach (var t in items) {
                if (indexedTableItems.ContainsKey (t.SubHeading)) {
                    indexedTableItems[t.SubHeading].Add(t);
                } else {
                    indexedTableItems.Add (t.SubHeading, new List<TableItem>() {t});
                }
            }
            keys = indexedTableItems.Keys.ToArray ();
        }
Esempio n. 2
0
		public TableSource (string[] items, HomeScreen owner)
		{
			this.owner = owner;

			indexedTableItems = new Dictionary<string, List<string>>();
			foreach (var t in items) {
				if (indexedTableItems.ContainsKey (t[0].ToString ())) {
					indexedTableItems[t[0].ToString ()].Add(t);
				} else {
					indexedTableItems.Add (t[0].ToString (), new List<string>() {t});
				}
			}
			keys = indexedTableItems.Keys.ToArray ();
		}
Esempio n. 3
0
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			window = new UIWindow (UIScreen.MainScreen.Bounds);
			window.MakeKeyAndVisible ();
						
			iPhoneHome = new HomeScreen();
			iPhoneHome.View.Frame = new CoreGraphics.CGRect(0
						, UIApplication.SharedApplication.StatusBarFrame.Height
						, UIScreen.MainScreen.ApplicationFrame.Width
						, UIScreen.MainScreen.ApplicationFrame.Height);
			
			window.RootViewController = iPhoneHome;
			iPhoneHome.View.BackgroundColor = UIColor.White;
			return true;
		}
Esempio n. 4
0
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			window = new UIWindow (UIScreen.MainScreen.Bounds);
			window.MakeKeyAndVisible ();
						
			iPhoneHome = new HomeScreen();
			iPhoneHome.View.Frame = new CoreGraphics.CGRect(0
						, UIApplication.SharedApplication.StatusBarFrame.Height
						, UIScreen.MainScreen.ApplicationFrame.Width
						, UIScreen.MainScreen.ApplicationFrame.Height);
			
			window.AddSubview (iPhoneHome.View);
			
			return true;
		}
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            UIApplication.SharedApplication.StatusBarHidden = true;

            window = new UIWindow (UIScreen.MainScreen.Bounds);
            window.MakeKeyAndVisible ();

            iPhoneHome = new HomeScreen();

            window.RootViewController = iPhoneHome;

            RectangleF screenRect = UIScreen.MainScreen.Bounds;
            float screenWidth = screenRect.Size.Width;
            float screenHeight = screenRect.Size.Height;

            return true;
        }
Esempio n. 6
0
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			window = new UIWindow (UIScreen.MainScreen.Bounds);
			window.MakeKeyAndVisible ();
					
			iPhoneHome = new HomeScreen();
			iPhoneHome.Title = "Table Editing";
			iPhoneHome.View.Frame = new CoreGraphics.CGRect(0
						, UIApplication.SharedApplication.StatusBarFrame.Height
						, UIScreen.MainScreen.ApplicationFrame.Width
						, UIScreen.MainScreen.ApplicationFrame.Height);
			

			navController = new UINavigationController();
			navController.PushViewController (iPhoneHome, false);

			window.AddSubview (navController.View);
			
			return true;
		}
Esempio n. 7
0
		public TableSource (string[] items, HomeScreen owner)
		{
			tableItems = items;
			this.owner = owner;
		}
Esempio n. 8
0
 public TableSource(List<TableItem> items, HomeScreen owner)
 {
     tableItems = items;
     this.owner = owner;
 }