Esempio n. 1
0
        private void ExecuteUndelete(object parameter)
        {
            IMessageBoxService _msgboxcommand = new MessageBoxService();

            if (_msgboxcommand.ShowMessage("The selected Assets will be undeleted and placed in the default customer location", "Undeleting", GenericMessageBoxButton.OKCancel, GenericMessageBoxIcon.Information).Equals(GenericMessageBoxResult.OK))
            {
                int result = _msgboxcommand.OpenDefaultCustomersDlg();
                if (result > 0)
                {
                    foreach (Models.AssetModel am in CheckedItems)
                    {
                        ViewModels.AssetTreeExViewModel.UnDeleteAsset(am, result);
                    }
                    DialogResult = true;
                }
            }
            _msgboxcommand = null;
        }