Ejemplo n.º 1
0
        public NotesTask(string storyboardName) : base(storyboardName)
        {
            MainViewController      = new NotesMainUIViewController( );
            MainViewController.Task = this;

            // create the note controller ONCE and let the view controllers grab it as needed.
            // That way, we can hold it in memory and cache notes, rather than always reloading them.
            NoteController      = new NotesViewController( );
            NoteController.Task = this;
        }
Ejemplo n.º 2
0
        public NotesTask( string storyboardName ) : base( storyboardName )
        {
            MainViewController = Storyboard.InstantiateViewController( "MainPageViewController" ) as NotesMainUIViewController;
            MainViewController.Task = this;

            // create the note controller ONCE and let the view controllers grab it as needed.
            // That way, we can hold it in memory and cache notes, rather than always reloading them.
            NoteController = new NotesViewController();
            NoteController.Task = this;
        }
Ejemplo n.º 3
0
        public override bool CanContainerPan(NSSet touches, UIEvent evt)
        {
            NotesViewController notesVC = ActiveViewController as NotesViewController;

            if (notesVC != null)
            {
                //return the inverse of touching a user note's bool.
                // so false if they ARE touching a note, true if they are not.
                return(!notesVC.TouchingUserNote(touches, evt));
            }

            // if the notes aren't active, then of course they can pan
            return(true);
        }