public ChangeSignatureOptionsResult GetChangeSignatureOptions(ISymbol symbol, Microsoft.CodeAnalysis.ChangeSignature.ParameterConfiguration parameters,
            INotificationService notificationService)
        {
            var viewModel = new ChangeSignatureDialogViewModel(new ParameterConfiguration(parameters), symbol);

            var dialog = new ChangeSignatureDialog(viewModel);
            dialog.SetOwnerToActive();
            var result = dialog.ShowDialog();

            return result == true
                ? new ChangeSignatureOptionsResult { IsCancelled = false, UpdatedSignature = new SignatureChange(new ParameterConfiguration(parameters), viewModel.GetParameterConfiguration()).ToInternal() }
                : new ChangeSignatureOptionsResult { IsCancelled = true };
        }
示例#2
0
        public ChangeSignatureOptionsResult GetChangeSignatureOptions(ISymbol symbol, Microsoft.CodeAnalysis.ChangeSignature.ParameterConfiguration parameters,
                                                                      INotificationService notificationService)
        {
            var viewModel = new ChangeSignatureDialogViewModel(new ParameterConfiguration(parameters), symbol);

            var dialog = new ChangeSignatureDialog(viewModel);

            dialog.SetOwnerToActive();
            var result = dialog.ShowDialog();

            return(result == true
                ? new ChangeSignatureOptionsResult {
                IsCancelled = false, UpdatedSignature = new SignatureChange(new ParameterConfiguration(parameters), viewModel.GetParameterConfiguration()).ToInternal()
            }
                : new ChangeSignatureOptionsResult {
                IsCancelled = true
            });
        }