Ejemplo n.º 1
0
        private void PersonCardSmallRoot_BindingContextChanged(object sender, System.EventArgs e)
        {
            NoteCardFull card = (sender as NoteCardFull);

            if (card is null)
            {
                this.IsVisible = false;
                return;
            }

            Contract.Requires(BindingContext is HLinkNoteModel);

            HLinkNoteModel t = this.BindingContext as HLinkNoteModel;

            if (t is null)
            {
                this.IsVisible = false;
                return;
            }

            if (t.Valid)
            {
                this.IsVisible = true;
            }
            else
            {
                this.IsVisible = false;
            }
        }
Ejemplo n.º 2
0
        private void NoteCardFullRoot_BindingContextChanged(object sender, System.EventArgs e)
        {
            NoteCardFull card = (sender as NoteCardFull);

            if (card is null)
            {
                this.IsVisible = false;
                return;
            }
        }