private void OnDeleteProfile(object sender, EventArgs e) { if (SelectedItem != null) { if (m_interactionService.ShowDialog("Delete Project Set", String.Format("Are you sure you want to delete the project set \"{0}\" from this solution?\r\nNote: This does not remove the actual projects from the solution, only the configuration used for loading/unloading them.", SelectedItem.Name), OLEMSGBUTTON.OLEMSGBUTTON_YESNO, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_SECOND, OLEMSGICON.OLEMSGICON_QUERY) == Microsoft.VisualStudio.VSConstants.MessageBoxResult.IDYES) { m_repository.ProjectSets.Remove(SelectedItem.ModelItem); } } }
public void EditInfoItem() { InfoItemViewModel infoItem = SelectedItem; var dialogResult = _interactionService.ShowDialog(infoItem); var b = dialogResult; }