Exemplo n.º 1
0
        public override void DidReceiveMemoryWarning()
        {
            base.DidReceiveMemoryWarning();
            // Stop listening for changes
            model.StopBroadcastingModelChangedNotifications();

            NSNotificationCenter.DefaultCenter.RemoveObserver(this);

            // Relinquish ownership of anything that can be recreated in ViewDidLoad or on demand.
            model = null;
        }
		public override void DidReceiveMemoryWarning ()
		{
			base.DidReceiveMemoryWarning ();
			// Stop listening for changes
			model.StopBroadcastingModelChangedNotifications ();

			NSNotificationCenter.DefaultCenter.RemoveObserver (this);

			// Relinquish ownership of anything that can be recreated in ViewDidLoad or on demand.
			model = null;
		}
Exemplo n.º 3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            model = new PNVModel();
            Title = model.SelectedCalendar.Title;

            // Start listening for changes
            model.StartBoradcastingModelChangedNotificaitons();
            NSNotificationCenter.DefaultCenter.AddObserver(model.PNVModelChangedNotification, delegate {
                RefreshView();
            });

            // Fetch the poker events
            // When it is done it will send a PNVModelChangedNotification, which updates our view.
            model.FetchPokerEvents();
        }
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			model = new PNVModel ();

			if(model.SelectedCalendar != null)
				Title = model.SelectedCalendar.Title;

			// Start listening for changes
			model.StartBoradcastingModelChangedNotificaitons ();
			NSNotificationCenter.DefaultCenter.AddObserver (model.PNVModelChangedNotification, delegate {
				RefreshView (); 
			});

			// Fetch the poker events
			// When it is done it will send a PNVModelChangedNotification, which updates our view.
			model.FetchPokerEvents ();
		}