示例#1
0
        private void CancelCommandExecuted()
        {
            _crmDataUnit.RevertChanges();

            if (_isEditMode)
            {
                Campaign.Refresh();
            }
        }
示例#2
0
        private void CancelCommandExecuted()
        {
            _crmDataUnit.RevertChanges();

            if (_isEditMode)
            {
                FollowUp.Refresh();
            }
            else
            {
                FollowUp = null;
            }
        }
示例#3
0
        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();
            }
        }
示例#4
0
        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();
            }
        }
示例#5
0
 private void CancelCommandExecuted()
 {
     _crmDataUnit.RevertChanges();
 }