Exemplo n.º 1
0
        private void AddNoteCommandExecuted()
        {
            RaisePropertyChanged("DisableParentWindow");
            _originalEnquiryAfterNotes = Enquiry.Clone();
            var window = new AddNoteView(Enquiry);
            window.ShowDialog();

            RaisePropertyChanged("EnableParentWindow");
        }
Exemplo n.º 2
0
        private void EditNoteCommandExecuted(EnquiryNoteModel item)
        {
            RaisePropertyChanged("DisableParentWindow");
            _originalEventNote = item.Clone();
            var window = new AddNoteView(Enquiry, item);
            window.ShowDialog();
            if (window.DialogResult != null && !window.DialogResult.Value)
            {
                item.EnquiryNote.Note = _originalEventNote.EnquiryNote.Note;
                item.Refresh();
            }

            RaisePropertyChanged("EnableParentWindow");
        }