public bool TryHandleCommand(IImmutableSet <IProjectTree> nodes, long commandId, bool focused, long commandExecuteOptions, IntPtr variantArgIn, IntPtr variantArgOut) { if (commandId == RPackageCommandId.icmdPublishSProc) { if (_dacServicesProvider.GetDacPackageServices(showMessage: true) != null) { Handle(); } return(true); } return(false); }
public async Task <bool> TryHandleCommandAsync(IImmutableSet <IProjectTree> nodes, long commandId, bool focused, long commandExecuteOptions, IntPtr variantArgIn, IntPtr variantArgOut) { if (commandId == RPackageCommandId.icmdPublishSProcOptions) { if (_dacServicesProvider.GetDacPackageServices(showMessage: true) != null) { var dlg = await SqlPublshOptionsDialog.CreateAsync(_appShell, _pss, _pcsp); await _appShell.SwitchToMainThreadAsync(); dlg.ShowModal(); } return(true); } return(false); }