/// <summary> /// Version detail button click handler /// Shows the version dialog and refreshes the info after the dialog is closed /// </summary> /// <param name="sender">Sender raising the event</param> /// <param name="e">Event arguments</param> private void BttnVersionDetail_OnClick(object sender, RoutedEventArgs e) { var dlgVersion = new VersionDialogWindow(SolutionInfo) { Owner = this }; dlgVersion.ShowMe(true); RefreshInfo(); }
/// <summary> /// Version info command (menu item) event handler /// </summary> /// <param name="sender">Sender raising the event</param> /// <param name="e">Event arguments</param> private void ExecuteRadCmdVersion(object sender, EventArgs e) { ThreadHelper.ThrowIfNotOnUIThread(); var dlg = new VersionDialogWindow(new SolutionInfo(dte.Solution)) { Owner = Application.Current.MainWindow }; dlg.ShowMe(true); }