public void RemoveNote(ConfidentialNote Note)
 {
     DState.IO.Delete <ConfidentialNote> (Note);
     __Notes.refresh( );
     //_Notes.Remove ( Note );
     //Note.Person = null; // Marks note for deletion
 }
        public ConfidentialNote AddNote(ConfidentialNote Note)
        {
            // checks for duplicate key, if any exists they are deleted.
            if (!string.IsNullOrWhiteSpace(Note.Key))                  // 2017-03-26 don't delete check for key integrity if the key is blank.
            {
                foreach (ConfidentialNote note in Notes.Where(c => c.Key == Note.Key))
                {
                    DState.IO.Delete <ConfidentialNote> (note);
                }
            }

            Note._Athlete_ID = this.ID;

            DState.IO.Add <ConfidentialNote>(Note);


            __Notes.refresh( );

            return(Note);
        }
 public ConfidentialNote(ConfidentialNote Note)
 {
     EnteredDate = Note.EnteredDate;
     this.Note   = Note.Note;
     this.Key    = Note.Key;
 }