private void Details_Click(object sender, RoutedEventArgs e)
        {
            const string CopyName = "Copy";

            if (CopyName.Equals(Details.Content))
            {
                Clipboard.SetText(ErrorDetails.Text);
                return;
            }

            Details.Content         = CopyName;
            ErrorDetails.Visibility = Visibility.Visible;
            Dispatcher.BeginInvoke(() =>
            {
                WindowsUtilities.CenterWindow(new WindowInteropHelper(this).Handle);
            }, DispatcherPriority.Background);
        }
Beispiel #2
0
        private void Details_Click(object sender, RoutedEventArgs e)
        {
            if ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift)
            {
                WpfExtensions.MailTo(null, "SSB Error: " + Error.Text, GetDebugInformation() + Environment.NewLine + ErrorDetails.Text);
                return;
            }
            const string CopyName = "Copy";

            if (CopyName.Equals(Details.Content))
            {
                Clipboard.SetText(ErrorDetails.Text);
                return;
            }

            Details.Content         = CopyName;
            ErrorDetails.Visibility = Visibility.Visible;
            Dispatcher.BeginInvoke(() =>
            {
                WindowsUtilities.CenterWindow(new WindowInteropHelper(this).Handle);
            }, DispatcherPriority.Background);
        }