private void CancelCommandExecuted() { _crmDataUnit.RevertChanges(); if (_isEditMode) { Campaign.Refresh(); } }
private void CancelCommandExecuted() { _crmDataUnit.RevertChanges(); if (_isEditMode) { FollowUp.Refresh(); } else { FollowUp = null; } }
private void CancelCommandExecuted() { _crmDataUnit.RevertChanges(); if (_isEditMode) { if (_originalActivity.FollowUp != null && Activity.FollowUp == null) { Activity.FollowUp = _originalActivity.FollowUp.Clone(); Activity.Activity.FollowUp = _originalActivity.FollowUp.FollowUp.Clone(); _crmDataUnit.FollowUpsRepository.Add(_originalActivity.FollowUp.FollowUp.Clone()); RaisePropertyChanged(() => HasActivityFollowUp); } Activity.Refresh(); } }
private void CancelEditingCommandExecuted() { if (_isEditMode) { if (_isLocked) { return; } _enquiry.Enquiry.Value = _originalEnquiry.Enquiry.Value; _enquiry.Enquiry.Likelihood = _originalEnquiry.Enquiry.Likelihood; _enquiry.Enquiry.Name = _originalEnquiry.Enquiry.Name; _enquiry.Enquiry.Places = _originalEnquiry.Enquiry.Places; _enquiry.Enquiry.Date = _originalEnquiry.Enquiry.Date; _crmDataUnit.EnquiriesRepository.RevertAllChanges(); _enquiry.Enquiry.LockedUserID = null; _crmDataUnit.SaveChanges(); } else { _crmDataUnit.RevertChanges(); } }
private void CancelCommandExecuted() { _crmDataUnit.RevertChanges(); }