aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/PowerOffView.xaml.cs
blob: ead34ae12d173ca31a407bd6bcc6dba8445317d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
#include "stdafx.h"
#include <stdlib.h>
#include <conio.h>
#include <windows.h>
#include "lmdfu.h"
#include "lmdfuwrap.h"
#include "DFUError.h"

#pragma once

using namespace System;

namespace Tango
{
	namespace FirmwareUpdateLib {

		ref class DFUException :
			public Exception
		{
		internal:
			DFUException(tLMDFUErr error) : Exception(gcnew String(_LMDFUErrorStringGet(error))) { Error = static_cast<DFUError>(error); };
		public:
			property DFUError Error;
			DFUException();
			DFUException(DFUError error) : Exception(error.ToString()) { Error = error; };
			DFUException(DFUError error, String^ message) : Exception(message) { Error = error; };
		};
	}
}