-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. Fixed a mistyped ID-Item mapping
- Loading branch information
secXsQuared1995
authored and
secXsQuared1995
committed
Oct 19, 2016
1 parent
ea35663
commit a684fea
Showing
13 changed files
with
165 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.Windows; | ||
|
||
namespace MHSEC_G | ||
{ | ||
public class BugCheck | ||
{ | ||
public enum ErrorCode | ||
{ | ||
// Facility Model | ||
MODEL_INVALID_FILE_SIZE = 0x1, | ||
MODEL_READ_BYTE_OVERFLOW = 0x2, | ||
MODEL_WRITE_BYTE_OVERFLOW = 0x3, | ||
MODEL_READ_UINT16_OVERFLOW = 0x4, | ||
MODEL_WRITE_UINT16_OVERFLOW = 0x5, | ||
MODEL_READ_UINT32_OVERFLOW = 0x6, | ||
MODEL_WRITE_UINT32_OVERFLOW = 0x7, | ||
MODEL_WRITE_UNICODE_OVERFLOW = 0x8, | ||
|
||
// Faciltiy ViewModel | ||
VIEWMODEL_NULL_SAVE = 0x11, | ||
|
||
// Faciltiy Item | ||
ITEM_NO_CORRESPONDENCE = 0x21, | ||
ITEM_MAPPING_CORRUPTED = 0x22, | ||
ITEM_MAPPING_DNE = 0x23, | ||
|
||
} | ||
public static void bug_check(ErrorCode error_code, string error_message) | ||
{ | ||
MessageBoxResult result = MessageBox.Show("Error code: 0x" + ((int)error_code).ToString("X4") + "\nMessage: " + error_message, "MHSEC-G Bug Check", | ||
MessageBoxButton.OK, MessageBoxImage.Stop); | ||
if (result == MessageBoxResult.OK) | ||
{ | ||
System.Windows.Forms.Application.Exit(); | ||
} | ||
Environment.Exit((int)error_code); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.