Ejemplo n.º 1
0
        private void AddNoteView(Note note)
        {
            NoteView noteView = new NoteView(note, this.Frame.Width - 46);

            noteView.Frame            = new CGRect(23, bottom, noteView.Frame.Width, noteView.TotalHeight);
            noteView.EditNoteEvent   += HandleEditNoteEvent;
            noteView.RemoveNoteEvent += HandleRemoveNoteEvent;
            noteView.FlipBackEvent   += HandleFlipBackEvent;
            this.AddSubview(noteView);

            bottom           = noteView.Frame.Bottom + 23;
            this.ContentSize = new CGSize(1, bottom);
        }
Ejemplo n.º 2
0
        void HandleFlipBackEvent(NoteView noteView)
        {
            var list = this.Subviews.Where(i => i is NoteView && i != noteView).ToList();

            Flip(list);
        }