private void OnBrokerChanging(object sender, EventArgs e) { Task.Run(async() => { await _shell.SwitchToMainThreadAsync(); _shell.PostCommand(RGuidList.RCmdSetGuid, RPackageCommandId.icmdShowReplWindow); }).DoNotWait(); }
private void SaveSettingsAndClose() { _model.Settings.Save(_settings); // Make sure all files are saved and up to date on disk. var dte = _appShell.GetGlobalService <DTE>(typeof(DTE)); dte.ExecuteCommand("File.SaveAll"); _appShell.PostCommand(RGuidList.RCmdSetGuid, RPackageCommandId.icmdPublishSProc); Close(); }