blob: 1fb079543edf050c8e992e5e630d14ac0eca160d (
plain)
| ofs | hex dump | ascii |
|---|
| 0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 01 f4 00 00 01 83 08 06 00 00 00 dd f1 e2 | .PNG........IHDR................ |
| 0020 | f3 00 00 00 01 73 52 47 42 00 ae ce 1c e9 00 00 00 04 67 41 4d 41 00 00 b1 8f 0b fc 61 05 00 00 | .....sRGB.........gAMA......a... |
| 0040 | 00 09 70 48 59 73 00 00 0b 12 00 00 0b 12 01 d2 dd 7e fc 00 00 00 19 74 45 58 74 53 6f 66 74 77 | ..pHYs...........~.....tEXtSoftw |
| 0060 | 61 72 65 00 70 61 69 6e 74 2e 6e 65 74 20 34 2e 30 2e 32 31 f1 20 69 95 00 00 ff 80 49 44 41 54 | are.paint.net.4.0.21..i.....IDAT |
| 0080 | 78 5e ec 5d 75 80 55 d5 f6 9e 1e ba bb bb 53 ba a5 bb 43 c2 40 45 a5 3b 44 29 13 49 31 10 51 11 | x^.]u.U.......S...C.@E.;D).I1.Q. |
| 00a0 | a4 91 ee 0e 69 86 69 ba 1b a6 6e 9c 8e 1b df 6f ad 33 33 bc 11 47 1f ca f0 9e ef e7 fc f1 dd 73 | ....i.i...n....o.33..G.........s |
| 00c0 | ce be e7 ec 7d 76 ad 6f ad 1d eb f8 e8 ba 5e 31 1d e9 f8 7f 0b 31 11 0e cusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Tango.Core.Commands;
using Tango.MachineStudio.UI.ViewModels;
namespace Tango.MachineStudio.UI.Windows
{
/// <summary>
/// Interaction logic for ExceptionWindow.xaml
/// </summary>
public partial class ExceptionWindow : Window
{
public ExceptionResolutions Resolution { get; set; }
public String Exception { get; set; }
public RelayCommand<ExceptionResolutions> ResolveCommand { get; set; }
public ExceptionWindow()
{
InitializeComponent();
DataContext = this;
}
public ExceptionWindow(Exception ex, bool canReport) : this()
{
Exception = ex.FlattenException();
ResolveCommand = new RelayCommand<ExceptionResolutions>(Resolve);
if (!canReport)
{
btnReport.Visibility = Visibility.Collapsed;
}
}
private void Resolve(ExceptionResolutions resolution)
{
Resolution = resolution;
Close();
}
}
}
|