Beispiel #1
0
        private void EditNoteCommandExecuted(MemberNoteModel memberNote)
        {
            RaisePropertyChanged("DisableParentWindow");
            SelectedNote = memberNote;
            _originalMember = Member.Clone();
            var window = new AddMemberNoteView(Member, memberNote);
            window.ShowDialog();

            if (window.DialogResult != null && window.DialogResult.Value)
            {
                ProcessUpdates();
                memberNote.Refresh();
            }
            RaisePropertyChanged("EnableParentWindow");
        }
Beispiel #2
0
        private void AddNoteCommandExecuted()
        {
            RaisePropertyChanged("DisableParentWindow");

            _originalMember = Member.Clone();
            var window = new AddMemberNoteView(Member);
            window.ShowDialog();

            RaisePropertyChanged("EnableParentWindow");

            if (window.DialogResult != null && window.DialogResult.Value)
            {
                Member.MemberNotes.Add(window.ViewModel.MemberNote);
                ProcessUpdates();
                SelectedNote = window.ViewModel.MemberNote;
            }
        }