コード例 #1
0
ファイル: NotesTask.cs プロジェクト: J3057/MobileApp
        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;
        }
コード例 #2
0
ファイル: NotesTask.cs プロジェクト: Higherbound/HBMobileApp
        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;
        }
コード例 #3
0
ファイル: NotesTask.cs プロジェクト: J3057/MobileApp
        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);
        }