Current filter:
                                You should refresh the page.
                                  • When I click on "Runs cleanup foractive document", coderush perform wrong action: it delete a portion of code that is in use. In attached code, CR removes submit and submitGen.

                                    [C#]
                                    var submit = new UICommand() { Caption = "Crea offerta", Command = new DelegateCommand( () => { IList<InvalidValue> iv = null; IList<InvalidValue> iv1 = null; var item = vm.CurrentItem as OffertaClienteCommerciale; iv = _repository.Save(item); if (iv != null && iv.Any()) { DefaultWinUIMessageBoxService.Show(iv.GetValidazioneAsString(), ((BaseApplication)Application.Current).EnvAppTitle, MessageBoxButton.OK, MessageBoxImage.Error); } else { var notification = DefaultNotificationService .CreatePredefinedNotification(@"Salvataggio effettuato con successo", null, null, null); notification.ShowAsync(); } }, () => { return vm.CanSave; }) }; var submitGen = new UICommand() { Caption = "Crea offerta e genera documento", Command = new DelegateCommand( () => { IList<InvalidValue> iv = null; IList<InvalidValue> iv1 = null; var item = vm.CurrentItem as OffertaClienteCommerciale; iv = _repository.Save(item); if (iv != null && iv.Any()) { DefaultWinUIMessageBoxService.Show(iv.GetValidazioneAsString(), ((BaseApplication)Application.Current).EnvAppTitle, MessageBoxButton.OK, MessageBoxImage.Error); } else { var notification = DefaultNotificationService .CreatePredefinedNotification(@"Salvataggio effettuato con successo", null, null, null); notification.ShowAsync(); } GenerateDoc(item, IsForEdigit); }, () => { return vm.CanSave; }) }; EditOffertaClienteCommercialeSvc.ShowDialog(new List<UICommand> { submit, submitGen }, "Nuova offerta", vm);
                                • Alex X (DevExpress) 01.29.2018

                                  Hi Pasquale,

                                  Thank you for letting us know about this problem.
                                  I have reproduced this behavior locally. You'll be notified when we prepare a fix.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed: