Advertisement
BaSs_HaXoR

CCAPI Debugger, Madetho Source C#

Apr 4th, 2014
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 111.68 KB | None | 0 0
  1. namespace ccapidebugger
  2.      * °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
  3. {
  4.     /*   PROOF: http://adf.ly/rt7QN °PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
  5.      * °°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°
  6.  ____    __      __  __  __     __    ____      
  7. /\  _`\ /\ \  __/\ \/\ \/\ \  /'__`\ /\  _`\    
  8. \ \ \L\ \ \ \/\ \ \ \ \ `\\ \/\_\L\ \\ \ \/\ \  
  9.  \ \ ,__/\ \ \ \ \ \ \ \ , ` \/_/_\_<_\ \ \ \ \
  10.   \ \ \/  \ \ \_/ \_\ \ \ \`\ \/\ \L\ \\ \ \_\ \
  11.    \ \_\   \ `\___x___/\ \_\ \_\ \____/ \ \____/
  12.     \/_/    '\/__//__/  \/_/\/_/\/___/   \/___/
  13.                                                
  14.      *     _    _        _      
  15.           / /\ /\ \     /\_\ _  
  16.          / /  \\ \ \   / / //\_\
  17.         / / /\ \\ \ \_/ / / \/_/
  18.        / / /\ \ \\ \___/ /      
  19.       / / /\ \_\ \\ \ \_/        
  20.      / / /\ \ \___\\ \ \        
  21.     / / /  \ \ \__/ \ \ \     _  
  22.    / / /____\_\ \    \ \ \  /_/\
  23.   / / /__________\    \ \_\ \_\/
  24.   \/_____________/     \/_/                          
  25.                                            °
  26.           _____                    _____                    _____                    _____                    _____                    _____                                           _______                   _____          
  27.          /\    \                  /\    \                  /\    \                  /\    \                  /\    \                  /\    \                 ______                  /::\    \                 /\    \        
  28.         /::\    \                /::\    \                /::\    \                /::\    \                /::\____\                /::\    \               |::|   |                /::::\    \               /::\    \        
  29.        /::::\    \              /::::\    \              /::::\    \              /::::\    \              /:::/    /               /::::\    \              |::|   |               /::::::\    \             /::::\    \      
  30.       /::::::\    \            /::::::\    \            /::::::\    \            /::::::\    \            /:::/    /               /::::::\    \             |::|   |              /::::::::\    \           /::::::\    \      
  31.      /:::/\:::\    \          /:::/\:::\    \          /:::/\:::\    \          /:::/\:::\    \          /:::/    /               /:::/\:::\    \            |::|   |             /:::/~~\:::\    \         /:::/\:::\    \    
  32.     /:::/__\:::\    \        /:::/__\:::\    \        /:::/__\:::\    \        /:::/__\:::\    \        /:::/____/               /:::/__\:::\    \           |::|   |            /:::/    \:::\    \       /:::/__\:::\    \    
  33.    /::::\   \:::\    \      /::::\   \:::\    \       \:::\   \:::\    \       \:::\   \:::\    \      /::::\    \              /::::\   \:::\    \          |::|   |           /:::/    / \:::\    \     /::::\   \:::\    \  
  34.   /::::::\   \:::\    \    /::::::\   \:::\    \    ___\:::\   \:::\    \    ___\:::\   \:::\    \    /::::::\    \   _____    /::::::\   \:::\    \         |::|   |          /:::/____/   \:::\____\   /::::::\   \:::\    \  
  35.  /:::/\:::\   \:::\ ___\  /:::/\:::\   \:::\    \  /\   \:::\   \:::\    \  /\   \:::\   \:::\    \  /:::/\:::\    \ /\    \  /:::/\:::\   \:::\    \  ______|::|___|___ ____ |:::|    |     |:::|    | /:::/\:::\   \:::\____\
  36. /:::/__\:::\   \:::|    |/:::/  \:::\   \:::\____\/::\   \:::\   \:::\____\/::\   \:::\   \:::\____\/:::/  \:::\    /::\____\/:::/  \:::\   \:::\____\|:::::::::::::::::|    ||:::|____|     |:::|    |/:::/  \:::\   \:::|    |
  37. \:::\   \:::\  /:::|____|\::/    \:::\  /:::/    /\:::\   \:::\   \::/    /\:::\   \:::\   \::/    /\::/    \:::\  /:::/    /\::/    \:::\  /:::/    /|:::::::::::::::::|____| \:::\    \   /:::/    / \::/   |::::\  /:::|____|
  38.  \:::\   \:::\/:::/    /  \/____/ \:::\/:::/    /  \:::\   \:::\   \/____/  \:::\   \:::\   \/____/  \/____/ \:::\/:::/    /  \/____/ \:::\/:::/    /  ~~~~~~|::|~~~|~~~        \:::\    \ /:::/    /   \/____|:::::\/:::/    /
  39.   \:::\   \::::::/    /            \::::::/    /    \:::\   \:::\    \       \:::\   \:::\    \               \::::::/    /            \::::::/    /         |::|   |            \:::\    /:::/    /          |:::::::::/    /  
  40.    \:::\   \::::/    /              \::::/    /      \:::\   \:::\____\       \:::\   \:::\____\               \::::/    /              \::::/    /          |::|   |             \:::\__/:::/    /           |::|\::::/    /  
  41.     \:::\  /:::/    /               /:::/    /        \:::\  /:::/    /        \:::\  /:::/    /               /:::/    /               /:::/    /           |::|   |              \::::::::/    /            |::| \::/____/    
  42.      \:::\/:::/    /               /:::/    /          \:::\/:::/    /          \:::\/:::/    /               /:::/    /               /:::/    /            |::|   |               \::::::/    /             |::|  ~|          
  43.       \::::::/    /               /:::/    /            \::::::/    /            \::::::/    /               /:::/    /               /:::/    /             |::|   |                \::::/    /              |::|   |          
  44.        \::::/    /               /:::/    /              \::::/    /              \::::/    /               /:::/    /               /:::/    /              |::|   |                 \::/____/               \::|   |          
  45.         \::/____/                \::/    /                \::/    /                \::/    /                \::/    /                \::/    /               |::|___|                  ~~                      \:|   |          
  46.          ~~                       \/____/                  \/____/                  \/____/                  \/____/                  \/____/                 ~~                                                \|___|                                                                                                                                                                                                                                    
  47.  
  48.      *
  49.      *
  50.  
  51. Yb        dP 8           w      .d88b.                       w  w          dP"Yb
  52.  Yb  db  dP  8d8b. .d88 w8ww    YPwww. .d88b .d8b 8   8 8d8b w w8ww Yb  dP "  d8
  53.   YbdPYbdP   8P Y8 8  8  8          d8 8.dP' 8    8b d8 8P   8  8    YbdP    dP  
  54.    YP  YP    8   8 `Y88  Y8P    `Y88P' `Y88P `Y8P `Y8P8 8    8  Y8P   dP     w  
  55.                                                                      dP        
  56.  
  57.  
  58.  
  59.  
  60.  *
  61.      *
  62.    ::: ::::::::  
  63.   :+: :+:    :+:
  64.  +:+         +:+
  65. +#+       +#++:  
  66.  +#+         +#+
  67.   #+# #+#    #+#
  68.    ### ########                               _           _   _                                                                      
  69.                                              | |         | | | |                                                                      
  70.  _   _ _ __   ___ _ __   ___ _ __ _   _ _ __ | |_ ___  __| | | |__   ___  ___ __ _ _   _ ___  ___  __      _____    ___ __ _ _ __ ___
  71. | | | | '_ \ / _ \ '_ \ / __| '__| | | | '_ \| __/ _ \/ _` | | '_ \ / _ \/ __/ _` | | | / __|/ _ \ \ \ /\ / / _ \  / __/ _` | '__/ _ \  
  72. | |_| | | | |  __/ | | | (__| |  | |_| | |_) | ||  __/ (_| | | |_) |  __/ (_| (_| | |_| \__ \  __/  \ V  V /  __/ | (_| (_| | | |  __/
  73.  \__,_|_| |_|\___|_| |_|\___|_|   \__, | .__/ \__\___|\__,_| |_.__/ \___|\___\__,_|\__,_|___/\___|   \_/\_/ \___|  \___\__,_|_|  \___|
  74.                                    __/ | |                                                                                            
  75.                                   |___/|_|                                                                                            
  76.    ::: ::::::::  
  77.   :+: :+:    :+:
  78.  +:+         +:+
  79. +#+       +#++:  
  80.  +#+         +#+
  81.   #+# #+#    #+#
  82.    ### ########
  83.          */
  84.     using BrightIdeasSoftware;
  85.     using ccapidebugger.Properties;
  86.     using PS3Lib;
  87.     using RTF;
  88.     using System;
  89.     using System.Collections.Generic;
  90.     using System.ComponentModel;
  91.     using System.Diagnostics;
  92.     using System.Drawing;
  93.     using System.IO;
  94.     using System.Linq;
  95.     using System.Runtime.InteropServices;
  96.     using System.Text;
  97.     using System.Text.RegularExpressions;
  98.     using System.Windows.Forms;
  99.  
  100.     public class Form1 : MetroFramework.Forms.MetroForm
  101.     {
  102.         private ArrayBuilder arBuilder = new ArrayBuilder(new byte[4]);
  103.         private RichTextBox asciiText;
  104.         private TextBox autoUpdateTime;
  105.         private Timer autoUpdateTimer;
  106.         private Button btnFindRanges;
  107.         private Button btnSearch;
  108.         private TextBox bytesLegthText;
  109.         private ComboBox comboByteLength;
  110.         private ComboBox comboMode;
  111.         private IContainer components;
  112.         private Label connectedLbl;
  113.         private ComboBox dexHexCombo;
  114.         private Button dumpMemoryBtn;
  115.         private TextBox endRangeTxt;
  116.         private ccapidebugger.frmFindRanges frmFindRanges = new ccapidebugger.frmFindRanges();
  117.         private CheckBox hexCheck;
  118.         private RichTextBox hexCode;
  119.         private OLVColumn hexColumn;
  120.         private TableLayoutPanel hexSearchLayout;
  121.         private TableLayoutPanel hexViewerLayout;
  122.         private TextBox jumpUint;
  123.         private Label label1;
  124.         private Label label2;
  125.         private Label label3;
  126.         private Label label4;
  127.         private Label label5;
  128.         private Label label6;
  129.         private Label label7;
  130.         private Label label8;
  131.         private Label label9;
  132.         private Label lblAddress;
  133.         private Label lblBytes;
  134.         private Label lblConnection;
  135.         private Label lblDebugging;
  136.         private Label lblJump;
  137.         private Label lblLength;
  138.         private Label lblMode;
  139.         private Label lblms;
  140.         private Label lblOffset;
  141.         private Label lblSearch;
  142.         private Label lblStatus;
  143.         private Label lblUpdate;
  144.         private TableLayoutPanel leftLayoutPanel;
  145.         private TableLayoutPanel mainTableLayout;
  146.         private Button minusHundred;
  147.         private OLVColumn OffsetColumn;
  148.         private RichTextBox offsetsText;
  149.         private TextBox offsetTxt;
  150.         private byte[] oldBytes;
  151.         private Panel panel2;
  152.         private Panel panelDebugging;
  153.         private Panel panelOffset;
  154.         private Button plusHundred;
  155.         private Panel pnlConnection;
  156.         private PS3API PS3 = new PS3API(SelectAPI.TargetManager);
  157.         private PictureBox refreshBtn;
  158.         private List<OffsetItem> resultOffsetList;
  159.         private TextBox resultTxt;
  160.         private BackgroundWorker saveWorker;
  161.         private TextBox searchEndTxt;
  162.         private Panel searchPanel;
  163.         private Button searchResult;
  164.         private TextBox searchStartTxt;
  165.         private ObjectListView searchTbl;
  166.         private Timer searchTime;
  167.         private BackgroundWorker searchWorker;
  168.         private Label srchLabel;
  169.         private CheckBox startAutoDebug;
  170.         private Button startDebug;
  171.         private TextBox startHex;
  172.         private TextBox startRangeTxt;
  173.         private Stopwatch stopWatch = new Stopwatch();
  174.         private Label stopWatchLabel;
  175.         private ComboBox typeCombo;
  176.         private MetroFramework.Controls.MetroRadioButton radioCCAPI;
  177.         private MetroFramework.Controls.MetroRadioButton radioTMAPI;
  178.         private MetroFramework.Controls.MetroButton btnConnection;
  179.         private MetroFramework.Controls.MetroButton setOffset;
  180.         private MetroFramework.Controls.MetroButton getOffset;
  181.         private Label label10;
  182.         private Label label11;
  183.         private MetroFramework.Controls.MetroTextBox ipaddress;
  184.         private OLVColumn valueColumn;
  185.  
  186.         public Form1()
  187.         {
  188.             this.InitializeComponent();
  189.             this.comboByteLength.SelectedIndex = 0;
  190.             this.dexHexCombo.SelectedIndex = 0;
  191.             this.comboMode.SelectedIndex = 0;
  192.             this.typeCombo.SelectedIndex = 2;
  193.         }
  194.  
  195.         private void asciiText_VScroll(object sender, EventArgs e)
  196.         {
  197.             int num = GetScrollPos(this.asciiText.Handle, 1) << 0x10;
  198.             uint num2 = (uint) (4 | num);
  199.             SendMessage(this.hexCode.Handle, 0x115, new IntPtr((long) num2), new IntPtr(0));
  200.             SendMessage(this.offsetsText.Handle, 0x115, new IntPtr((long) num2), new IntPtr(0));
  201.         }
  202.  
  203.         private void autoUpdateTimer_Tick(object sender, EventArgs e)
  204.         {
  205.             this.debugShit();
  206.         }
  207.  
  208.         private void btnFindRanges_Click(object sender, EventArgs e)
  209.         {
  210.             if (this.btnFindRanges.Text.Equals("Stop"))
  211.             {
  212.                 this.btnFindRanges.Text = "Find Ranges";
  213.                 this.frmFindRanges.stopFinding();
  214.             }
  215.             else
  216.             {
  217.                 this.btnFindRanges.Text = "Stop";
  218.                 if (!this.frmFindRanges.Visible)
  219.                 {
  220.                     this.frmFindRanges = new ccapidebugger.frmFindRanges();
  221.                 }
  222.                 this.frmFindRanges.Show();
  223.                 this.frmFindRanges.findRanges(this.PS3);
  224.             }
  225.         }
  226.  
  227.         private void btnSearch_Click(object sender, EventArgs e)
  228.         {
  229.             this.startSearching(0);
  230.         }
  231.  
  232.         private void comboMode_SelectedIndexChanged(object sender, EventArgs e)
  233.         {
  234.             if (this.comboMode.SelectedIndex == 1)
  235.             {
  236.                 MessageBox.Show("Value between.. is not supported yet.");
  237.             }
  238.             else
  239.             {
  240.                 this.searchEndTxt.Enabled = false;
  241.             }
  242.         }
  243.  
  244.         public static string ConvertHexToString(string HexValue)
  245.         {
  246.             string str = "";
  247.             while (HexValue.Length > 0)
  248.             {
  249.                 str = str + Convert.ToChar(Convert.ToUInt32(HexValue.Substring(0, 2), 0x10)).ToString();
  250.                 HexValue = HexValue.Substring(2, HexValue.Length - 2);
  251.             }
  252.             return str;
  253.         }
  254.  
  255.         public static string ConvertStringToHex(string asciiString)
  256.         {
  257.             string str = "";
  258.             foreach (char ch in asciiString)
  259.             {
  260.                 int num = ch;
  261.                 str = str + string.Format("{0:x2}", Convert.ToUInt32(num.ToString()));
  262.             }
  263.             return str;
  264.         }
  265.  
  266.         private void debugShit()
  267.         {
  268.             this.hexCode.Text = "";
  269.             this.offsetsText.Text = "";
  270.             string str = this.startHex.Text.Substring(this.startHex.Text.Length - 1, 1);
  271.             if (!"0".Equals(str))
  272.             {
  273.                 this.startHex.Text = this.startHex.Text.Remove(this.startHex.Text.Length - 1, 1) + "0";
  274.             }
  275.             uint offset = Convert.ToUInt32(this.startHex.Text, 0x10);
  276.             RTFBuilderbase builderbase = new RTFBuilder();
  277.             builderbase.Font(RTFFont.CourierNew);
  278.             builderbase.FontSize(22f);
  279.             byte[] bytes = this.PS3.GetBytes(offset, Convert.ToInt32(this.bytesLegthText.Text));
  280.             for (int i = 0; i < bytes.Length; i++)
  281.             {
  282.                 builderbase.Font(RTFFont.CourierNew);
  283.                 builderbase.FontSize(22f);
  284.                 if (this.oldBytes != null)
  285.                 {
  286.                     if (bytes.Length == this.oldBytes.Length)
  287.                     {
  288.                         if (bytes[i] == this.oldBytes[i])
  289.                         {
  290.                             builderbase.Append(bytes[i].ToString("X2") + " ");
  291.                         }
  292.                         else
  293.                         {
  294.                             builderbase.ForeColor(KnownColor.Red).Append(bytes[i].ToString("X2") + " ");
  295.                         }
  296.                     }
  297.                     else
  298.                     {
  299.                         builderbase.Append(bytes[i].ToString("X2") + " ");
  300.                     }
  301.                 }
  302.                 else
  303.                 {
  304.                     builderbase.Append(bytes[i].ToString("X2") + " ");
  305.                 }
  306.             }
  307.             this.oldBytes = bytes;
  308.             string str2 = builderbase.ToString();
  309.             this.hexCode.Rtf = str2;
  310.             string str3 = SpliceText(Encoding.Default.GetString(bytes).Replace("\0", ".").Replace("\a", ".").Replace("\v", ".").Replace("\r", ".").Replace(" ", ".").Replace("\t", ".").Replace("\n", ".").Replace("\b", ".").Replace("\f", "."), 0x10);
  311.             this.asciiText.Text = str3;
  312.             uint num3 = offset;
  313.             int num4 = (this.hexCode.Text.Length / 0x30) + 1;
  314.             for (int j = 0; j < num4; j++)
  315.             {
  316.                 this.offsetsText.Text = this.offsetsText.Text + "0x" + Convert.ToString((long) num3, 0x10).ToUpper() + Environment.NewLine;
  317.                 num3 += 0x10;
  318.             }
  319.         }
  320.  
  321.         protected override void Dispose(bool disposing)
  322.         {
  323.             if (disposing && (this.components != null))
  324.             {
  325.                 this.components.Dispose();
  326.             }
  327.             base.Dispose(disposing);
  328.         }
  329.  
  330.         private void dumbMemoryToFile()
  331.         {
  332.             try
  333.             {
  334.                 string path = "";
  335.                 uint num = Convert.ToUInt32(this.startRangeTxt.Text, 0x10);
  336.                 int num3 = Convert.ToInt32(Convert.ToUInt32(this.endRangeTxt.Text, 0x10)) - Convert.ToInt32(num);
  337.                 if ((this.startRangeTxt.Text.Length == 8) && (this.endRangeTxt.Text.Length == 8))
  338.                 {
  339.                     SaveFileDialog dialog = new SaveFileDialog {
  340.                         Filter = "Binary (*.bin)|*.bin|All files (*.*)|*.*",
  341.                         FileName = "MEMDUMB_" + this.startRangeTxt.Text + "_" + this.endRangeTxt.Text,
  342.                         Title = "Dump PS3 Memory to file",
  343.                         RestoreDirectory = true
  344.                     };
  345.                     if (dialog.ShowDialog() == DialogResult.OK)
  346.                     {
  347.                         this.dumpMemoryBtn.Image = Resources.loading1;
  348.                         this.dumpMemoryBtn.Text = "";
  349.                         path = dialog.FileName;
  350.                         if (path != "")
  351.                         {
  352.                             if (File.Exists(path))
  353.                             {
  354.                                 File.Delete(path);
  355.                             }
  356.                             object[] argument = new object[] { 3, path, num, num3 };
  357.                             this.saveWorker.RunWorkerAsync(argument);
  358.                         }
  359.                     }
  360.                 }
  361.             }
  362.             catch (Exception)
  363.             {
  364.                 MessageBox.Show("Please check your offset range and try again.");
  365.             }
  366.         }
  367.  
  368.         private void dumpMemoryBtn_Click(object sender, EventArgs e)
  369.         {
  370.             if (this.dumpMemoryBtn.Text == "")
  371.             {
  372.                 MessageBox.Show("Please wait until saving finished.");
  373.             }
  374.             else
  375.             {
  376.                 this.dumbMemoryToFile();
  377.             }
  378.         }
  379.  
  380.         private byte[] getBytesByInput(string input)
  381.         {
  382.             return StringToByteArray(this.getSearchHexValue(input));
  383.         }
  384.  
  385.         [DllImport("User32.dll")]
  386.         public static extern int GetScrollPos(IntPtr hWnd, int nBar);
  387.         private string getSearchHexValue(string input)
  388.         {
  389.             string str = "00";
  390.             if (!this.hexCheck.Checked)
  391.             {
  392.                 if (this.typeCombo.SelectedIndex != 4)
  393.                 {
  394.                     try
  395.                     {
  396.                         str = Convert.ToInt64(input).ToString("X");
  397.                     }
  398.                     catch (Exception)
  399.                     {
  400.                         MessageBox.Show("Could not convert to HEX.");
  401.                     }
  402.                 }
  403.                 else
  404.                 {
  405.                     try
  406.                     {
  407.                         str = ConvertStringToHex(input).ToUpper();
  408.                     }
  409.                     catch (Exception)
  410.                     {
  411.                         MessageBox.Show("Could not convert to HEX.");
  412.                     }
  413.                 }
  414.             }
  415.             else
  416.             {
  417.                 str = input;
  418.             }
  419.             switch (this.typeCombo.SelectedIndex)
  420.             {
  421.                 case 0:
  422.                     return str.PadLeft(2, '0');
  423.  
  424.                 case 1:
  425.                     return str.PadLeft(4, '0');
  426.  
  427.                 case 2:
  428.                     return str.PadLeft(8, '0');
  429.             }
  430.             return str;
  431.         }
  432.  
  433.         private string getSearchValue(string input)
  434.         {
  435.             if (this.hexCheck.Checked)
  436.             {
  437.                 if (this.typeCombo.SelectedIndex != 4)
  438.                 {
  439.                     try
  440.                     {
  441.                         return Convert.ToInt32(this.searchStartTxt.Text, 0x10).ToString();
  442.                     }
  443.                     catch (Exception)
  444.                     {
  445.                         MessageBox.Show("Could not convert to Decimal.");
  446.                         goto Label_006E;
  447.                     }
  448.                 }
  449.                 try
  450.                 {
  451.                     return ConvertHexToString(this.searchStartTxt.Text).ToUpper();
  452.                 }
  453.                 catch (Exception)
  454.                 {
  455.                     MessageBox.Show("Could not convert to String.");
  456.                     goto Label_006E;
  457.                 }
  458.             }
  459.             return input;
  460.         Label_006E:
  461.             return "";
  462.         }
  463.  
  464.         private void hexCheck_CheckedChanged(object sender, EventArgs e)
  465.         {
  466.             this.setSearchingValues();
  467.         }
  468.  
  469.         private void hexCode_Click(object sender, EventArgs e)
  470.         {
  471.             this.dexHexCombo.SelectedIndex = 1;
  472.             int index = this.hexCode.SelectionStart / 0x30;
  473.             int num2 = (this.hexCode.SelectionStart - (index * 0x30)) / 3;
  474.             string str = this.offsetsText.Lines.ElementAt<string>(index);
  475.             string str2 = num2.ToString("X");
  476.             str = str.Remove(str.Length - 1, 1) + str2;
  477.             this.offsetTxt.Text = str;
  478.             this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadByte(Convert.ToUInt32(str, 0x10)), 0x10).ToUpper();
  479.             this.resultTxt.Focus();
  480.         }
  481.  
  482.         private void InitializeComponent()
  483.         {
  484.             this.components = new System.ComponentModel.Container();
  485.             this.mainTableLayout = new System.Windows.Forms.TableLayoutPanel();
  486.             this.leftLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
  487.             this.panelDebugging = new System.Windows.Forms.Panel();
  488.             this.startDebug = new System.Windows.Forms.Button();
  489.             this.startAutoDebug = new System.Windows.Forms.CheckBox();
  490.             this.lblms = new System.Windows.Forms.Label();
  491.             this.autoUpdateTime = new System.Windows.Forms.TextBox();
  492.             this.lblUpdate = new System.Windows.Forms.Label();
  493.             this.plusHundred = new System.Windows.Forms.Button();
  494.             this.minusHundred = new System.Windows.Forms.Button();
  495.             this.jumpUint = new System.Windows.Forms.TextBox();
  496.             this.lblJump = new System.Windows.Forms.Label();
  497.             this.lblBytes = new System.Windows.Forms.Label();
  498.             this.bytesLegthText = new System.Windows.Forms.TextBox();
  499.             this.lblLength = new System.Windows.Forms.Label();
  500.             this.startHex = new System.Windows.Forms.TextBox();
  501.             this.lblAddress = new System.Windows.Forms.Label();
  502.             this.lblDebugging = new System.Windows.Forms.Label();
  503.             this.panelOffset = new System.Windows.Forms.Panel();
  504.             this.getOffset = new MetroFramework.Controls.MetroButton();
  505.             this.setOffset = new MetroFramework.Controls.MetroButton();
  506.             this.dexHexCombo = new System.Windows.Forms.ComboBox();
  507.             this.resultTxt = new System.Windows.Forms.TextBox();
  508.             this.comboByteLength = new System.Windows.Forms.ComboBox();
  509.             this.offsetTxt = new System.Windows.Forms.TextBox();
  510.             this.lblOffset = new System.Windows.Forms.Label();
  511.             this.pnlConnection = new System.Windows.Forms.Panel();
  512.             this.ipaddress = new MetroFramework.Controls.MetroTextBox();
  513.             this.btnConnection = new MetroFramework.Controls.MetroButton();
  514.             this.radioTMAPI = new MetroFramework.Controls.MetroRadioButton();
  515.             this.radioCCAPI = new MetroFramework.Controls.MetroRadioButton();
  516.             this.connectedLbl = new System.Windows.Forms.Label();
  517.             this.lblStatus = new System.Windows.Forms.Label();
  518.             this.lblConnection = new System.Windows.Forms.Label();
  519.             this.hexSearchLayout = new System.Windows.Forms.TableLayoutPanel();
  520.             this.hexViewerLayout = new System.Windows.Forms.TableLayoutPanel();
  521.             this.searchTbl = new BrightIdeasSoftware.ObjectListView();
  522.             this.OffsetColumn = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
  523.             this.hexColumn = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
  524.             this.valueColumn = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
  525.             this.label3 = new System.Windows.Forms.Label();
  526.             this.label2 = new System.Windows.Forms.Label();
  527.             this.label1 = new System.Windows.Forms.Label();
  528.             this.panel2 = new System.Windows.Forms.Panel();
  529.             this.refreshBtn = new System.Windows.Forms.PictureBox();
  530.             this.srchLabel = new System.Windows.Forms.Label();
  531.             this.offsetsText = new System.Windows.Forms.RichTextBox();
  532.             this.asciiText = new System.Windows.Forms.RichTextBox();
  533.             this.hexCode = new System.Windows.Forms.RichTextBox();
  534.             this.searchPanel = new System.Windows.Forms.Panel();
  535.             this.btnFindRanges = new System.Windows.Forms.Button();
  536.             this.label8 = new System.Windows.Forms.Label();
  537.             this.stopWatchLabel = new System.Windows.Forms.Label();
  538.             this.lblSearch = new System.Windows.Forms.Label();
  539.             this.label7 = new System.Windows.Forms.Label();
  540.             this.dumpMemoryBtn = new System.Windows.Forms.Button();
  541.             this.searchResult = new System.Windows.Forms.Button();
  542.             this.searchEndTxt = new System.Windows.Forms.TextBox();
  543.             this.hexCheck = new System.Windows.Forms.CheckBox();
  544.             this.typeCombo = new System.Windows.Forms.ComboBox();
  545.             this.label6 = new System.Windows.Forms.Label();
  546.             this.comboMode = new System.Windows.Forms.ComboBox();
  547.             this.lblMode = new System.Windows.Forms.Label();
  548.             this.label5 = new System.Windows.Forms.Label();
  549.             this.searchStartTxt = new System.Windows.Forms.TextBox();
  550.             this.label4 = new System.Windows.Forms.Label();
  551.             this.endRangeTxt = new System.Windows.Forms.TextBox();
  552.             this.startRangeTxt = new System.Windows.Forms.TextBox();
  553.             this.label9 = new System.Windows.Forms.Label();
  554.             this.btnSearch = new System.Windows.Forms.Button();
  555.             this.autoUpdateTimer = new System.Windows.Forms.Timer(this.components);
  556.             this.searchWorker = new System.ComponentModel.BackgroundWorker();
  557.             this.saveWorker = new System.ComponentModel.BackgroundWorker();
  558.             this.searchTime = new System.Windows.Forms.Timer(this.components);
  559.             this.label10 = new System.Windows.Forms.Label();
  560.             this.label11 = new System.Windows.Forms.Label();
  561.             this.mainTableLayout.SuspendLayout();
  562.             this.leftLayoutPanel.SuspendLayout();
  563.             this.panelDebugging.SuspendLayout();
  564.             this.panelOffset.SuspendLayout();
  565.             this.pnlConnection.SuspendLayout();
  566.             this.hexSearchLayout.SuspendLayout();
  567.             this.hexViewerLayout.SuspendLayout();
  568.             ((System.ComponentModel.ISupportInitialize)(this.searchTbl)).BeginInit();
  569.             this.panel2.SuspendLayout();
  570.             ((System.ComponentModel.ISupportInitialize)(this.refreshBtn)).BeginInit();
  571.             this.searchPanel.SuspendLayout();
  572.             this.SuspendLayout();
  573.             //
  574.             // mainTableLayout
  575.             //
  576.             this.mainTableLayout.BackColor = System.Drawing.SystemColors.Window;
  577.             this.mainTableLayout.ColumnCount = 2;
  578.             this.mainTableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
  579.             this.mainTableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
  580.             this.mainTableLayout.Controls.Add(this.leftLayoutPanel, 0, 0);
  581.             this.mainTableLayout.Controls.Add(this.hexSearchLayout, 1, 0);
  582.             this.mainTableLayout.Dock = System.Windows.Forms.DockStyle.Fill;
  583.             this.mainTableLayout.ForeColor = System.Drawing.SystemColors.ControlText;
  584.             this.mainTableLayout.Location = new System.Drawing.Point(20, 60);
  585.             this.mainTableLayout.Margin = new System.Windows.Forms.Padding(0);
  586.             this.mainTableLayout.Name = "mainTableLayout";
  587.             this.mainTableLayout.RowCount = 1;
  588.             this.mainTableLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
  589.             this.mainTableLayout.Size = new System.Drawing.Size(1210, 542);
  590.             this.mainTableLayout.TabIndex = 0;
  591.             //
  592.             // leftLayoutPanel
  593.             //
  594.             this.leftLayoutPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
  595.             this.leftLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
  596.             this.leftLayoutPanel.ColumnCount = 1;
  597.             this.leftLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
  598.             this.leftLayoutPanel.Controls.Add(this.panelDebugging, 0, 2);
  599.             this.leftLayoutPanel.Controls.Add(this.panelOffset, 0, 1);
  600.             this.leftLayoutPanel.Controls.Add(this.pnlConnection, 0, 0);
  601.             this.leftLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
  602.             this.leftLayoutPanel.ForeColor = System.Drawing.SystemColors.ControlText;
  603.             this.leftLayoutPanel.Location = new System.Drawing.Point(0, 0);
  604.             this.leftLayoutPanel.Margin = new System.Windows.Forms.Padding(0);
  605.             this.leftLayoutPanel.Name = "leftLayoutPanel";
  606.             this.leftLayoutPanel.RowCount = 3;
  607.             this.leftLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 147F));
  608.             this.leftLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 140F));
  609.             this.leftLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 250F));
  610.             this.leftLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
  611.             this.leftLayoutPanel.Size = new System.Drawing.Size(250, 542);
  612.             this.leftLayoutPanel.TabIndex = 1;
  613.             //
  614.             // panelDebugging
  615.             //
  616.             this.panelDebugging.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  617.             this.panelDebugging.Controls.Add(this.startDebug);
  618.             this.panelDebugging.Controls.Add(this.startAutoDebug);
  619.             this.panelDebugging.Controls.Add(this.lblms);
  620.             this.panelDebugging.Controls.Add(this.autoUpdateTime);
  621.             this.panelDebugging.Controls.Add(this.lblUpdate);
  622.             this.panelDebugging.Controls.Add(this.plusHundred);
  623.             this.panelDebugging.Controls.Add(this.minusHundred);
  624.             this.panelDebugging.Controls.Add(this.jumpUint);
  625.             this.panelDebugging.Controls.Add(this.lblJump);
  626.             this.panelDebugging.Controls.Add(this.lblBytes);
  627.             this.panelDebugging.Controls.Add(this.bytesLegthText);
  628.             this.panelDebugging.Controls.Add(this.lblLength);
  629.             this.panelDebugging.Controls.Add(this.startHex);
  630.             this.panelDebugging.Controls.Add(this.lblAddress);
  631.             this.panelDebugging.Controls.Add(this.lblDebugging);
  632.             this.panelDebugging.Dock = System.Windows.Forms.DockStyle.Fill;
  633.             this.panelDebugging.Location = new System.Drawing.Point(4, 293);
  634.             this.panelDebugging.Name = "panelDebugging";
  635.             this.panelDebugging.Size = new System.Drawing.Size(242, 245);
  636.             this.panelDebugging.TabIndex = 0;
  637.             //
  638.             // startDebug
  639.             //
  640.             this.startDebug.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
  641.             this.startDebug.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
  642.             this.startDebug.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  643.             this.startDebug.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  644.             this.startDebug.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
  645.             this.startDebug.Location = new System.Drawing.Point(12, 207);
  646.             this.startDebug.Name = "startDebug";
  647.             this.startDebug.Size = new System.Drawing.Size(217, 27);
  648.             this.startDebug.TabIndex = 6;
  649.             this.startDebug.Text = "Load / Refresh";
  650.             this.startDebug.UseVisualStyleBackColor = false;
  651.             this.startDebug.Click += new System.EventHandler(this.startDebug_Click);
  652.             //
  653.             // startAutoDebug
  654.             //
  655.             this.startAutoDebug.AutoSize = true;
  656.             this.startAutoDebug.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  657.             this.startAutoDebug.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  658.             this.startAutoDebug.Location = new System.Drawing.Point(10, 182);
  659.             this.startAutoDebug.Name = "startAutoDebug";
  660.             this.startAutoDebug.Size = new System.Drawing.Size(94, 19);
  661.             this.startAutoDebug.TabIndex = 0;
  662.             this.startAutoDebug.Text = "Auto update";
  663.             this.startAutoDebug.UseVisualStyleBackColor = true;
  664.             this.startAutoDebug.CheckedChanged += new System.EventHandler(this.startAutoDebug_CheckedChanged);
  665.             //
  666.             // lblms
  667.             //
  668.             this.lblms.AutoSize = true;
  669.             this.lblms.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  670.             this.lblms.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  671.             this.lblms.Location = new System.Drawing.Point(156, 157);
  672.             this.lblms.Name = "lblms";
  673.             this.lblms.Size = new System.Drawing.Size(73, 15);
  674.             this.lblms.TabIndex = 15;
  675.             this.lblms.Text = "Miliseconds";
  676.             //
  677.             // autoUpdateTime
  678.             //
  679.             this.autoUpdateTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  680.             this.autoUpdateTime.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  681.             this.autoUpdateTime.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  682.             this.autoUpdateTime.ForeColor = System.Drawing.Color.White;
  683.             this.autoUpdateTime.Location = new System.Drawing.Point(89, 151);
  684.             this.autoUpdateTime.Name = "autoUpdateTime";
  685.             this.autoUpdateTime.Size = new System.Drawing.Size(62, 22);
  686.             this.autoUpdateTime.TabIndex = 14;
  687.             this.autoUpdateTime.Text = "1000";
  688.             //
  689.             // lblUpdate
  690.             //
  691.             this.lblUpdate.AutoSize = true;
  692.             this.lblUpdate.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  693.             this.lblUpdate.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  694.             this.lblUpdate.Location = new System.Drawing.Point(9, 155);
  695.             this.lblUpdate.Name = "lblUpdate";
  696.             this.lblUpdate.Size = new System.Drawing.Size(47, 15);
  697.             this.lblUpdate.TabIndex = 13;
  698.             this.lblUpdate.Text = "Update";
  699.             //
  700.             // plusHundred
  701.             //
  702.             this.plusHundred.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
  703.             this.plusHundred.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
  704.             this.plusHundred.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  705.             this.plusHundred.Font = new System.Drawing.Font("Arial Black", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  706.             this.plusHundred.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
  707.             this.plusHundred.Location = new System.Drawing.Point(201, 120);
  708.             this.plusHundred.Name = "plusHundred";
  709.             this.plusHundred.Size = new System.Drawing.Size(28, 22);
  710.             this.plusHundred.TabIndex = 12;
  711.             this.plusHundred.Text = "+";
  712.             this.plusHundred.UseVisualStyleBackColor = false;
  713.             this.plusHundred.Click += new System.EventHandler(this.plusHundred_Click);
  714.             //
  715.             // minusHundred
  716.             //
  717.             this.minusHundred.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
  718.             this.minusHundred.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
  719.             this.minusHundred.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  720.             this.minusHundred.Font = new System.Drawing.Font("Arial Black", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  721.             this.minusHundred.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
  722.             this.minusHundred.Location = new System.Drawing.Point(167, 120);
  723.             this.minusHundred.Name = "minusHundred";
  724.             this.minusHundred.Size = new System.Drawing.Size(28, 22);
  725.             this.minusHundred.TabIndex = 6;
  726.             this.minusHundred.Text = "-";
  727.             this.minusHundred.UseVisualStyleBackColor = false;
  728.             this.minusHundred.Click += new System.EventHandler(this.minusHundred_Click);
  729.             //
  730.             // jumpUint
  731.             //
  732.             this.jumpUint.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  733.             this.jumpUint.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  734.             this.jumpUint.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  735.             this.jumpUint.ForeColor = System.Drawing.Color.White;
  736.             this.jumpUint.Location = new System.Drawing.Point(89, 120);
  737.             this.jumpUint.Name = "jumpUint";
  738.             this.jumpUint.Size = new System.Drawing.Size(72, 22);
  739.             this.jumpUint.TabIndex = 11;
  740.             this.jumpUint.Text = "0x50";
  741.             //
  742.             // lblJump
  743.             //
  744.             this.lblJump.AutoSize = true;
  745.             this.lblJump.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  746.             this.lblJump.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  747.             this.lblJump.Location = new System.Drawing.Point(9, 124);
  748.             this.lblJump.Name = "lblJump";
  749.             this.lblJump.Size = new System.Drawing.Size(39, 15);
  750.             this.lblJump.TabIndex = 10;
  751.             this.lblJump.Text = "Jump";
  752.             //
  753.             // lblBytes
  754.             //
  755.             this.lblBytes.AutoSize = true;
  756.             this.lblBytes.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  757.             this.lblBytes.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  758.             this.lblBytes.Location = new System.Drawing.Point(181, 94);
  759.             this.lblBytes.Name = "lblBytes";
  760.             this.lblBytes.Size = new System.Drawing.Size(37, 15);
  761.             this.lblBytes.TabIndex = 9;
  762.             this.lblBytes.Text = "Bytes";
  763.             //
  764.             // bytesLegthText
  765.             //
  766.             this.bytesLegthText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  767.             this.bytesLegthText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  768.             this.bytesLegthText.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  769.             this.bytesLegthText.ForeColor = System.Drawing.Color.White;
  770.             this.bytesLegthText.Location = new System.Drawing.Point(89, 88);
  771.             this.bytesLegthText.Name = "bytesLegthText";
  772.             this.bytesLegthText.Size = new System.Drawing.Size(89, 22);
  773.             this.bytesLegthText.TabIndex = 8;
  774.             this.bytesLegthText.Text = "800";
  775.             //
  776.             // lblLength
  777.             //
  778.             this.lblLength.AutoSize = true;
  779.             this.lblLength.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  780.             this.lblLength.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  781.             this.lblLength.Location = new System.Drawing.Point(9, 92);
  782.             this.lblLength.Name = "lblLength";
  783.             this.lblLength.Size = new System.Drawing.Size(46, 15);
  784.             this.lblLength.TabIndex = 7;
  785.             this.lblLength.Text = "Length";
  786.             //
  787.             // startHex
  788.             //
  789.             this.startHex.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  790.             this.startHex.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  791.             this.startHex.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  792.             this.startHex.ForeColor = System.Drawing.Color.White;
  793.             this.startHex.Location = new System.Drawing.Point(89, 57);
  794.             this.startHex.Name = "startHex";
  795.             this.startHex.Size = new System.Drawing.Size(140, 22);
  796.             this.startHex.TabIndex = 6;
  797.             this.startHex.Text = "0x00000000";
  798.             //
  799.             // lblAddress
  800.             //
  801.             this.lblAddress.AutoSize = true;
  802.             this.lblAddress.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  803.             this.lblAddress.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  804.             this.lblAddress.Location = new System.Drawing.Point(9, 61);
  805.             this.lblAddress.Name = "lblAddress";
  806.             this.lblAddress.Size = new System.Drawing.Size(55, 15);
  807.             this.lblAddress.TabIndex = 4;
  808.             this.lblAddress.Text = "Address";
  809.             //
  810.             // lblDebugging
  811.             //
  812.             this.lblDebugging.AutoSize = true;
  813.             this.lblDebugging.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  814.             this.lblDebugging.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  815.             this.lblDebugging.Location = new System.Drawing.Point(8, 16);
  816.             this.lblDebugging.Name = "lblDebugging";
  817.             this.lblDebugging.Size = new System.Drawing.Size(108, 24);
  818.             this.lblDebugging.TabIndex = 2;
  819.             this.lblDebugging.Text = "Debugging";
  820.             //
  821.             // panelOffset
  822.             //
  823.             this.panelOffset.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  824.             this.panelOffset.Controls.Add(this.getOffset);
  825.             this.panelOffset.Controls.Add(this.setOffset);
  826.             this.panelOffset.Controls.Add(this.dexHexCombo);
  827.             this.panelOffset.Controls.Add(this.resultTxt);
  828.             this.panelOffset.Controls.Add(this.comboByteLength);
  829.             this.panelOffset.Controls.Add(this.offsetTxt);
  830.             this.panelOffset.Controls.Add(this.lblOffset);
  831.             this.panelOffset.Dock = System.Windows.Forms.DockStyle.Fill;
  832.             this.panelOffset.Location = new System.Drawing.Point(4, 152);
  833.             this.panelOffset.Name = "panelOffset";
  834.             this.panelOffset.Size = new System.Drawing.Size(242, 134);
  835.             this.panelOffset.TabIndex = 0;
  836.             //
  837.             // getOffset
  838.             //
  839.             this.getOffset.Highlight = false;
  840.             this.getOffset.Location = new System.Drawing.Point(136, 98);
  841.             this.getOffset.Name = "getOffset";
  842.             this.getOffset.Size = new System.Drawing.Size(93, 23);
  843.             this.getOffset.Style = MetroFramework.MetroColorStyle.Purple;
  844.             this.getOffset.StyleManager = null;
  845.             this.getOffset.TabIndex = 8;
  846.             this.getOffset.Text = "Get";
  847.             this.getOffset.Theme = MetroFramework.MetroThemeStyle.Dark;
  848.             this.getOffset.Click += new System.EventHandler(this.metroButton2_Click);
  849.             //
  850.             // setOffset
  851.             //
  852.             this.setOffset.Highlight = false;
  853.             this.setOffset.Location = new System.Drawing.Point(10, 98);
  854.             this.setOffset.Name = "setOffset";
  855.             this.setOffset.Size = new System.Drawing.Size(114, 23);
  856.             this.setOffset.Style = MetroFramework.MetroColorStyle.Purple;
  857.             this.setOffset.StyleManager = null;
  858.             this.setOffset.TabIndex = 7;
  859.             this.setOffset.Text = "Set";
  860.             this.setOffset.Theme = MetroFramework.MetroThemeStyle.Dark;
  861.             this.setOffset.Click += new System.EventHandler(this.metroButton1_Click_1);
  862.             //
  863.             // dexHexCombo
  864.             //
  865.             this.dexHexCombo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  866.             this.dexHexCombo.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
  867.             this.dexHexCombo.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  868.             this.dexHexCombo.ForeColor = System.Drawing.Color.White;
  869.             this.dexHexCombo.FormattingEnabled = true;
  870.             this.dexHexCombo.Items.AddRange(new object[] {
  871.             "dec",
  872.             "hex"});
  873.             this.dexHexCombo.Location = new System.Drawing.Point(136, 64);
  874.             this.dexHexCombo.Name = "dexHexCombo";
  875.             this.dexHexCombo.Size = new System.Drawing.Size(93, 24);
  876.             this.dexHexCombo.TabIndex = 3;
  877.             this.dexHexCombo.SelectedIndexChanged += new System.EventHandler(this.dexHexCombo_SelectedIndexChanged);
  878.             //
  879.             // resultTxt
  880.             //
  881.             this.resultTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  882.             this.resultTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  883.             this.resultTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  884.             this.resultTxt.ForeColor = System.Drawing.Color.White;
  885.             this.resultTxt.Location = new System.Drawing.Point(12, 66);
  886.             this.resultTxt.Name = "resultTxt";
  887.             this.resultTxt.Size = new System.Drawing.Size(112, 22);
  888.             this.resultTxt.TabIndex = 2;
  889.             this.resultTxt.Text = "Input/Output";
  890.             this.resultTxt.TextChanged += new System.EventHandler(this.resultTxt_TextChanged);
  891.             //
  892.             // comboByteLength
  893.             //
  894.             this.comboByteLength.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  895.             this.comboByteLength.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
  896.             this.comboByteLength.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  897.             this.comboByteLength.ForeColor = System.Drawing.Color.White;
  898.             this.comboByteLength.FormattingEnabled = true;
  899.             this.comboByteLength.Items.AddRange(new object[] {
  900.             "1 Byte",
  901.             "2 Bytes",
  902.             "4 Bytes",
  903.             "Text"});
  904.             this.comboByteLength.Location = new System.Drawing.Point(136, 34);
  905.             this.comboByteLength.Name = "comboByteLength";
  906.             this.comboByteLength.Size = new System.Drawing.Size(93, 24);
  907.             this.comboByteLength.TabIndex = 0;
  908.             this.comboByteLength.SelectedIndexChanged += new System.EventHandler(this.comboByteLength_SelectedIndexChanged);
  909.             //
  910.             // offsetTxt
  911.             //
  912.             this.offsetTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  913.             this.offsetTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  914.             this.offsetTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  915.             this.offsetTxt.ForeColor = System.Drawing.Color.White;
  916.             this.offsetTxt.Location = new System.Drawing.Point(12, 35);
  917.             this.offsetTxt.Name = "offsetTxt";
  918.             this.offsetTxt.Size = new System.Drawing.Size(112, 22);
  919.             this.offsetTxt.TabIndex = 0;
  920.             this.offsetTxt.Text = "0x00000000";
  921.             this.offsetTxt.TextChanged += new System.EventHandler(this.offsetTxt_TextChanged);
  922.             //
  923.             // lblOffset
  924.             //
  925.             this.lblOffset.AutoSize = true;
  926.             this.lblOffset.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  927.             this.lblOffset.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  928.             this.lblOffset.Location = new System.Drawing.Point(8, 7);
  929.             this.lblOffset.Name = "lblOffset";
  930.             this.lblOffset.Size = new System.Drawing.Size(67, 24);
  931.             this.lblOffset.TabIndex = 1;
  932.             this.lblOffset.Text = "Offset";
  933.             //
  934.             // pnlConnection
  935.             //
  936.             this.pnlConnection.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  937.             this.pnlConnection.Controls.Add(this.ipaddress);
  938.             this.pnlConnection.Controls.Add(this.btnConnection);
  939.             this.pnlConnection.Controls.Add(this.radioTMAPI);
  940.             this.pnlConnection.Controls.Add(this.radioCCAPI);
  941.             this.pnlConnection.Controls.Add(this.connectedLbl);
  942.             this.pnlConnection.Controls.Add(this.lblStatus);
  943.             this.pnlConnection.Controls.Add(this.lblConnection);
  944.             this.pnlConnection.Location = new System.Drawing.Point(4, 4);
  945.             this.pnlConnection.Name = "pnlConnection";
  946.             this.pnlConnection.Size = new System.Drawing.Size(242, 141);
  947.             this.pnlConnection.TabIndex = 0;
  948.             this.pnlConnection.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlConnection_Paint);
  949.             //
  950.             // ipaddress
  951.             //
  952.             this.ipaddress.CustomBackground = false;
  953.             this.ipaddress.CustomForeColor = false;
  954.             this.ipaddress.FontSize = MetroFramework.MetroTextBoxSize.Small;
  955.             this.ipaddress.FontWeight = MetroFramework.MetroTextBoxWeight.Regular;
  956.             this.ipaddress.Location = new System.Drawing.Point(10, 70);
  957.             this.ipaddress.Multiline = false;
  958.             this.ipaddress.Name = "ipaddress";
  959.             this.ipaddress.SelectedText = "";
  960.             this.ipaddress.Size = new System.Drawing.Size(219, 23);
  961.             this.ipaddress.Style = MetroFramework.MetroColorStyle.Purple;
  962.             this.ipaddress.StyleManager = null;
  963.             this.ipaddress.TabIndex = 7;
  964.             this.ipaddress.Text = "192.168.1.42";
  965.             this.ipaddress.Theme = MetroFramework.MetroThemeStyle.Dark;
  966.             this.ipaddress.UseStyleColors = false;
  967.             this.ipaddress.Click += new System.EventHandler(this.metroTextBox1_Click);
  968.             //
  969.             // btnConnection
  970.             //
  971.             this.btnConnection.Highlight = false;
  972.             this.btnConnection.Location = new System.Drawing.Point(10, 97);
  973.             this.btnConnection.Name = "btnConnection";
  974.             this.btnConnection.Size = new System.Drawing.Size(219, 23);
  975.             this.btnConnection.Style = MetroFramework.MetroColorStyle.Purple;
  976.             this.btnConnection.StyleManager = null;
  977.             this.btnConnection.TabIndex = 6;
  978.             this.btnConnection.Text = "Connect and Attach";
  979.             this.btnConnection.Theme = MetroFramework.MetroThemeStyle.Dark;
  980.             this.btnConnection.Click += new System.EventHandler(this.metroButton1_Click);
  981.             //
  982.             // radioTMAPI
  983.             //
  984.             this.radioTMAPI.AutoSize = true;
  985.             this.radioTMAPI.Checked = true;
  986.             this.radioTMAPI.CustomBackground = false;
  987.             this.radioTMAPI.CustomForeColor = false;
  988.             this.radioTMAPI.FontSize = MetroFramework.MetroLinkSize.Small;
  989.             this.radioTMAPI.FontWeight = MetroFramework.MetroLinkWeight.Regular;
  990.             this.radioTMAPI.Location = new System.Drawing.Point(170, 49);
  991.             this.radioTMAPI.Name = "radioTMAPI";
  992.             this.radioTMAPI.Size = new System.Drawing.Size(59, 15);
  993.             this.radioTMAPI.Style = MetroFramework.MetroColorStyle.Purple;
  994.             this.radioTMAPI.StyleManager = null;
  995.             this.radioTMAPI.TabIndex = 5;
  996.             this.radioTMAPI.TabStop = true;
  997.             this.radioTMAPI.Text = "TMAPI";
  998.             this.radioTMAPI.Theme = MetroFramework.MetroThemeStyle.Dark;
  999.             this.radioTMAPI.UseStyleColors = false;
  1000.             this.radioTMAPI.UseVisualStyleBackColor = true;
  1001.             this.radioTMAPI.CheckedChanged += new System.EventHandler(this.metroRadioButton2_CheckedChanged);
  1002.             //
  1003.             // radioCCAPI
  1004.             //
  1005.             this.radioCCAPI.AutoSize = true;
  1006.             this.radioCCAPI.CustomBackground = false;
  1007.             this.radioCCAPI.CustomForeColor = false;
  1008.             this.radioCCAPI.FontSize = MetroFramework.MetroLinkSize.Small;
  1009.             this.radioCCAPI.FontWeight = MetroFramework.MetroLinkWeight.Regular;
  1010.             this.radioCCAPI.Location = new System.Drawing.Point(12, 49);
  1011.             this.radioCCAPI.Name = "radioCCAPI";
  1012.             this.radioCCAPI.Size = new System.Drawing.Size(57, 15);
  1013.             this.radioCCAPI.Style = MetroFramework.MetroColorStyle.Purple;
  1014.             this.radioCCAPI.StyleManager = null;
  1015.             this.radioCCAPI.TabIndex = 4;
  1016.             this.radioCCAPI.Text = "CCAPI";
  1017.             this.radioCCAPI.Theme = MetroFramework.MetroThemeStyle.Dark;
  1018.             this.radioCCAPI.UseStyleColors = false;
  1019.             this.radioCCAPI.UseVisualStyleBackColor = true;
  1020.             this.radioCCAPI.CheckedChanged += new System.EventHandler(this.metroRadioButton1_CheckedChanged);
  1021.             //
  1022.             // connectedLbl
  1023.             //
  1024.             this.connectedLbl.AutoSize = true;
  1025.             this.connectedLbl.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1026.             this.connectedLbl.ForeColor = System.Drawing.Color.Red;
  1027.             this.connectedLbl.Location = new System.Drawing.Point(93, 123);
  1028.             this.connectedLbl.Name = "connectedLbl";
  1029.             this.connectedLbl.Size = new System.Drawing.Size(85, 15);
  1030.             this.connectedLbl.TabIndex = 3;
  1031.             this.connectedLbl.Text = "Disconnected";
  1032.             //
  1033.             // lblStatus
  1034.             //
  1035.             this.lblStatus.AutoSize = true;
  1036.             this.lblStatus.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1037.             this.lblStatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1038.             this.lblStatus.Location = new System.Drawing.Point(51, 123);
  1039.             this.lblStatus.Name = "lblStatus";
  1040.             this.lblStatus.Size = new System.Drawing.Size(45, 15);
  1041.             this.lblStatus.TabIndex = 2;
  1042.             this.lblStatus.Text = "Status:";
  1043.             //
  1044.             // lblConnection
  1045.             //
  1046.             this.lblConnection.AutoSize = true;
  1047.             this.lblConnection.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1048.             this.lblConnection.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1049.             this.lblConnection.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1050.             this.lblConnection.Location = new System.Drawing.Point(8, 9);
  1051.             this.lblConnection.Name = "lblConnection";
  1052.             this.lblConnection.Size = new System.Drawing.Size(116, 24);
  1053.             this.lblConnection.TabIndex = 0;
  1054.             this.lblConnection.Text = "Connection";
  1055.             //
  1056.             // hexSearchLayout
  1057.             //
  1058.             this.hexSearchLayout.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
  1059.             this.hexSearchLayout.ColumnCount = 1;
  1060.             this.hexSearchLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
  1061.             this.hexSearchLayout.Controls.Add(this.hexViewerLayout, 0, 0);
  1062.             this.hexSearchLayout.Controls.Add(this.searchPanel, 0, 1);
  1063.             this.hexSearchLayout.Dock = System.Windows.Forms.DockStyle.Fill;
  1064.             this.hexSearchLayout.Location = new System.Drawing.Point(250, 0);
  1065.             this.hexSearchLayout.Margin = new System.Windows.Forms.Padding(0);
  1066.             this.hexSearchLayout.Name = "hexSearchLayout";
  1067.             this.hexSearchLayout.RowCount = 2;
  1068.             this.hexSearchLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
  1069.             this.hexSearchLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 80F));
  1070.             this.hexSearchLayout.Size = new System.Drawing.Size(960, 542);
  1071.             this.hexSearchLayout.TabIndex = 2;
  1072.             //
  1073.             // hexViewerLayout
  1074.             //
  1075.             this.hexViewerLayout.BackColor = System.Drawing.Color.White;
  1076.             this.hexViewerLayout.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Inset;
  1077.             this.hexViewerLayout.ColumnCount = 4;
  1078.             this.hexViewerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 220F));
  1079.             this.hexViewerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 110F));
  1080.             this.hexViewerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 446F));
  1081.             this.hexViewerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
  1082.             this.hexViewerLayout.Controls.Add(this.searchTbl, 0, 1);
  1083.             this.hexViewerLayout.Controls.Add(this.label3, 3, 0);
  1084.             this.hexViewerLayout.Controls.Add(this.label2, 2, 0);
  1085.             this.hexViewerLayout.Controls.Add(this.label1, 1, 0);
  1086.             this.hexViewerLayout.Controls.Add(this.panel2, 0, 0);
  1087.             this.hexViewerLayout.Controls.Add(this.offsetsText, 1, 1);
  1088.             this.hexViewerLayout.Controls.Add(this.asciiText, 3, 1);
  1089.             this.hexViewerLayout.Controls.Add(this.hexCode, 2, 1);
  1090.             this.hexViewerLayout.Dock = System.Windows.Forms.DockStyle.Fill;
  1091.             this.hexViewerLayout.ForeColor = System.Drawing.SystemColors.ControlText;
  1092.             this.hexViewerLayout.Location = new System.Drawing.Point(1, 1);
  1093.             this.hexViewerLayout.Margin = new System.Windows.Forms.Padding(0);
  1094.             this.hexViewerLayout.Name = "hexViewerLayout";
  1095.             this.hexViewerLayout.RowCount = 2;
  1096.             this.hexViewerLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
  1097.             this.hexViewerLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
  1098.             this.hexViewerLayout.Size = new System.Drawing.Size(958, 459);
  1099.             this.hexViewerLayout.TabIndex = 2;
  1100.             //
  1101.             // searchTbl
  1102.             //
  1103.             this.searchTbl.AllColumns.Add(this.OffsetColumn);
  1104.             this.searchTbl.AllColumns.Add(this.hexColumn);
  1105.             this.searchTbl.AllColumns.Add(this.valueColumn);
  1106.             this.searchTbl.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1107.             this.searchTbl.BorderStyle = System.Windows.Forms.BorderStyle.None;
  1108.             this.searchTbl.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
  1109.             this.OffsetColumn,
  1110.             this.hexColumn,
  1111.             this.valueColumn});
  1112.             this.searchTbl.Dock = System.Windows.Forms.DockStyle.Fill;
  1113.             this.searchTbl.ForeColor = System.Drawing.Color.Red;
  1114.             this.searchTbl.Location = new System.Drawing.Point(2, 32);
  1115.             this.searchTbl.Margin = new System.Windows.Forms.Padding(0);
  1116.             this.searchTbl.Name = "searchTbl";
  1117.             this.searchTbl.ShowGroups = false;
  1118.             this.searchTbl.Size = new System.Drawing.Size(220, 425);
  1119.             this.searchTbl.TabIndex = 11;
  1120.             this.searchTbl.UseCompatibleStateImageBehavior = false;
  1121.             this.searchTbl.View = System.Windows.Forms.View.Details;
  1122.             this.searchTbl.CellClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.searchTbl_CellClick);
  1123.             this.searchTbl.DoubleClick += new System.EventHandler(this.searchTbl_DoubleClick);
  1124.             //
  1125.             // OffsetColumn
  1126.             //
  1127.             this.OffsetColumn.AspectName = "Offset";
  1128.             this.OffsetColumn.CellPadding = null;
  1129.             this.OffsetColumn.Text = "Offset";
  1130.             this.OffsetColumn.Width = 85;
  1131.             //
  1132.             // hexColumn
  1133.             //
  1134.             this.hexColumn.AspectName = "HexValue";
  1135.             this.hexColumn.AspectToStringFormat = "";
  1136.             this.hexColumn.CellPadding = null;
  1137.             this.hexColumn.Text = "Hex";
  1138.             this.hexColumn.Width = 65;
  1139.             //
  1140.             // valueColumn
  1141.             //
  1142.             this.valueColumn.AspectName = "Value";
  1143.             this.valueColumn.AspectToStringFormat = "";
  1144.             this.valueColumn.CellPadding = null;
  1145.             this.valueColumn.Text = "Value";
  1146.             this.valueColumn.Width = 70;
  1147.             //
  1148.             // label3
  1149.             //
  1150.             this.label3.AutoSize = true;
  1151.             this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1152.             this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
  1153.             this.label3.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1154.             this.label3.ForeColor = System.Drawing.Color.White;
  1155.             this.label3.Location = new System.Drawing.Point(787, 2);
  1156.             this.label3.Name = "label3";
  1157.             this.label3.Size = new System.Drawing.Size(166, 28);
  1158.             this.label3.TabIndex = 6;
  1159.             this.label3.Text = "Text";
  1160.             this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
  1161.             //
  1162.             // label2
  1163.             //
  1164.             this.label2.AutoSize = true;
  1165.             this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1166.             this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
  1167.             this.label2.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1168.             this.label2.ForeColor = System.Drawing.Color.White;
  1169.             this.label2.Location = new System.Drawing.Point(339, 2);
  1170.             this.label2.Name = "label2";
  1171.             this.label2.Size = new System.Drawing.Size(440, 28);
  1172.             this.label2.TabIndex = 5;
  1173.             this.label2.Text = "00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F";
  1174.             this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
  1175.             //
  1176.             // label1
  1177.             //
  1178.             this.label1.AutoSize = true;
  1179.             this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1180.             this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
  1181.             this.label1.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1182.             this.label1.ForeColor = System.Drawing.Color.White;
  1183.             this.label1.Location = new System.Drawing.Point(227, 2);
  1184.             this.label1.Name = "label1";
  1185.             this.label1.Size = new System.Drawing.Size(104, 28);
  1186.             this.label1.TabIndex = 4;
  1187.             this.label1.Text = "Offset";
  1188.             this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
  1189.             //
  1190.             // panel2
  1191.             //
  1192.             this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1193.             this.panel2.Controls.Add(this.refreshBtn);
  1194.             this.panel2.Controls.Add(this.srchLabel);
  1195.             this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
  1196.             this.panel2.ForeColor = System.Drawing.Color.White;
  1197.             this.panel2.Location = new System.Drawing.Point(2, 2);
  1198.             this.panel2.Margin = new System.Windows.Forms.Padding(0);
  1199.             this.panel2.Name = "panel2";
  1200.             this.panel2.Size = new System.Drawing.Size(220, 28);
  1201.             this.panel2.TabIndex = 12;
  1202.             //
  1203.             // refreshBtn
  1204.             //
  1205.             this.refreshBtn.Cursor = System.Windows.Forms.Cursors.Hand;
  1206.             this.refreshBtn.Location = new System.Drawing.Point(194, 4);
  1207.             this.refreshBtn.Name = "refreshBtn";
  1208.             this.refreshBtn.Size = new System.Drawing.Size(23, 24);
  1209.             this.refreshBtn.TabIndex = 27;
  1210.             this.refreshBtn.TabStop = false;
  1211.             this.refreshBtn.Click += new System.EventHandler(this.refreshBtn_Click);
  1212.             //
  1213.             // srchLabel
  1214.             //
  1215.             this.srchLabel.AutoSize = true;
  1216.             this.srchLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1217.             this.srchLabel.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1218.             this.srchLabel.ForeColor = System.Drawing.Color.White;
  1219.             this.srchLabel.Location = new System.Drawing.Point(3, 4);
  1220.             this.srchLabel.Name = "srchLabel";
  1221.             this.srchLabel.Size = new System.Drawing.Size(101, 17);
  1222.             this.srchLabel.TabIndex = 11;
  1223.             this.srchLabel.Text = "Search Result";
  1224.             this.srchLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
  1225.             //
  1226.             // offsetsText
  1227.             //
  1228.             this.offsetsText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1229.             this.offsetsText.BorderStyle = System.Windows.Forms.BorderStyle.None;
  1230.             this.offsetsText.Dock = System.Windows.Forms.DockStyle.Fill;
  1231.             this.offsetsText.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1232.             this.offsetsText.ForeColor = System.Drawing.SystemColors.MenuHighlight;
  1233.             this.offsetsText.Location = new System.Drawing.Point(227, 35);
  1234.             this.offsetsText.Name = "offsetsText";
  1235.             this.offsetsText.ReadOnly = true;
  1236.             this.offsetsText.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
  1237.             this.offsetsText.Size = new System.Drawing.Size(104, 419);
  1238.             this.offsetsText.TabIndex = 7;
  1239.             this.offsetsText.Text = "0x00000000";
  1240.             //
  1241.             // asciiText
  1242.             //
  1243.             this.asciiText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1244.             this.asciiText.BorderStyle = System.Windows.Forms.BorderStyle.None;
  1245.             this.asciiText.Dock = System.Windows.Forms.DockStyle.Fill;
  1246.             this.asciiText.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1247.             this.asciiText.ForeColor = System.Drawing.Color.White;
  1248.             this.asciiText.Location = new System.Drawing.Point(787, 35);
  1249.             this.asciiText.Name = "asciiText";
  1250.             this.asciiText.Size = new System.Drawing.Size(166, 419);
  1251.             this.asciiText.TabIndex = 9;
  1252.             this.asciiText.Text = ".";
  1253.             this.asciiText.VScroll += new System.EventHandler(this.asciiText_VScroll);
  1254.             //
  1255.             // hexCode
  1256.             //
  1257.             this.hexCode.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1258.             this.hexCode.BorderStyle = System.Windows.Forms.BorderStyle.None;
  1259.             this.hexCode.Dock = System.Windows.Forms.DockStyle.Fill;
  1260.             this.hexCode.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1261.             this.hexCode.ForeColor = System.Drawing.Color.White;
  1262.             this.hexCode.Location = new System.Drawing.Point(341, 35);
  1263.             this.hexCode.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
  1264.             this.hexCode.Name = "hexCode";
  1265.             this.hexCode.ReadOnly = true;
  1266.             this.hexCode.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
  1267.             this.hexCode.Size = new System.Drawing.Size(438, 419);
  1268.             this.hexCode.TabIndex = 8;
  1269.             this.hexCode.Text = "00";
  1270.             this.hexCode.Click += new System.EventHandler(this.hexCode_Click);
  1271.             //
  1272.             // searchPanel
  1273.             //
  1274.             this.searchPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1275.             this.searchPanel.Controls.Add(this.btnFindRanges);
  1276.             this.searchPanel.Controls.Add(this.label8);
  1277.             this.searchPanel.Controls.Add(this.stopWatchLabel);
  1278.             this.searchPanel.Controls.Add(this.lblSearch);
  1279.             this.searchPanel.Controls.Add(this.label7);
  1280.             this.searchPanel.Controls.Add(this.dumpMemoryBtn);
  1281.             this.searchPanel.Controls.Add(this.searchResult);
  1282.             this.searchPanel.Controls.Add(this.searchEndTxt);
  1283.             this.searchPanel.Controls.Add(this.hexCheck);
  1284.             this.searchPanel.Controls.Add(this.typeCombo);
  1285.             this.searchPanel.Controls.Add(this.label6);
  1286.             this.searchPanel.Controls.Add(this.comboMode);
  1287.             this.searchPanel.Controls.Add(this.lblMode);
  1288.             this.searchPanel.Controls.Add(this.label5);
  1289.             this.searchPanel.Controls.Add(this.searchStartTxt);
  1290.             this.searchPanel.Controls.Add(this.label4);
  1291.             this.searchPanel.Controls.Add(this.endRangeTxt);
  1292.             this.searchPanel.Controls.Add(this.startRangeTxt);
  1293.             this.searchPanel.Controls.Add(this.label9);
  1294.             this.searchPanel.Controls.Add(this.btnSearch);
  1295.             this.searchPanel.Dock = System.Windows.Forms.DockStyle.Fill;
  1296.             this.searchPanel.Location = new System.Drawing.Point(1, 461);
  1297.             this.searchPanel.Margin = new System.Windows.Forms.Padding(0);
  1298.             this.searchPanel.Name = "searchPanel";
  1299.             this.searchPanel.Size = new System.Drawing.Size(958, 80);
  1300.             this.searchPanel.TabIndex = 1;
  1301.             //
  1302.             // btnFindRanges
  1303.             //
  1304.             this.btnFindRanges.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
  1305.             this.btnFindRanges.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
  1306.             this.btnFindRanges.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  1307.             this.btnFindRanges.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1308.             this.btnFindRanges.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
  1309.             this.btnFindRanges.Location = new System.Drawing.Point(836, 8);
  1310.             this.btnFindRanges.Name = "btnFindRanges";
  1311.             this.btnFindRanges.Size = new System.Drawing.Size(114, 27);
  1312.             this.btnFindRanges.TabIndex = 32;
  1313.             this.btnFindRanges.Text = "Find Ranges";
  1314.             this.btnFindRanges.UseVisualStyleBackColor = false;
  1315.             this.btnFindRanges.Click += new System.EventHandler(this.btnFindRanges_Click);
  1316.             //
  1317.             // label8
  1318.             //
  1319.             this.label8.AutoSize = true;
  1320.             this.label8.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1321.             this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1322.             this.label8.Location = new System.Drawing.Point(11, 45);
  1323.             this.label8.Name = "label8";
  1324.             this.label8.Size = new System.Drawing.Size(35, 15);
  1325.             this.label8.TabIndex = 31;
  1326.             this.label8.Text = "Time";
  1327.             //
  1328.             // stopWatchLabel
  1329.             //
  1330.             this.stopWatchLabel.AutoSize = true;
  1331.             this.stopWatchLabel.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold);
  1332.             this.stopWatchLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1333.             this.stopWatchLabel.Location = new System.Drawing.Point(55, 45);
  1334.             this.stopWatchLabel.Name = "stopWatchLabel";
  1335.             this.stopWatchLabel.Size = new System.Drawing.Size(55, 15);
  1336.             this.stopWatchLabel.TabIndex = 30;
  1337.             this.stopWatchLabel.Text = "00:00:00";
  1338.             //
  1339.             // lblSearch
  1340.             //
  1341.             this.lblSearch.AutoSize = true;
  1342.             this.lblSearch.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1343.             this.lblSearch.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1344.             this.lblSearch.Location = new System.Drawing.Point(10, 9);
  1345.             this.lblSearch.Name = "lblSearch";
  1346.             this.lblSearch.Size = new System.Drawing.Size(77, 24);
  1347.             this.lblSearch.TabIndex = 29;
  1348.             this.lblSearch.Text = "Search";
  1349.             //
  1350.             // label7
  1351.             //
  1352.             this.label7.AutoSize = true;
  1353.             this.label7.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1354.             this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1355.             this.label7.Location = new System.Drawing.Point(195, 42);
  1356.             this.label7.Name = "label7";
  1357.             this.label7.Size = new System.Drawing.Size(18, 15);
  1358.             this.label7.TabIndex = 28;
  1359.             this.label7.Text = "to";
  1360.             //
  1361.             // dumpMemoryBtn
  1362.             //
  1363.             this.dumpMemoryBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
  1364.             this.dumpMemoryBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
  1365.             this.dumpMemoryBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  1366.             this.dumpMemoryBtn.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1367.             this.dumpMemoryBtn.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
  1368.             this.dumpMemoryBtn.Location = new System.Drawing.Point(528, 45);
  1369.             this.dumpMemoryBtn.Name = "dumpMemoryBtn";
  1370.             this.dumpMemoryBtn.Size = new System.Drawing.Size(162, 27);
  1371.             this.dumpMemoryBtn.TabIndex = 27;
  1372.             this.dumpMemoryBtn.Text = "Dump Memory";
  1373.             this.dumpMemoryBtn.UseVisualStyleBackColor = false;
  1374.             this.dumpMemoryBtn.Click += new System.EventHandler(this.dumpMemoryBtn_Click);
  1375.             //
  1376.             // searchResult
  1377.             //
  1378.             this.searchResult.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
  1379.             this.searchResult.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
  1380.             this.searchResult.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  1381.             this.searchResult.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1382.             this.searchResult.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
  1383.             this.searchResult.Location = new System.Drawing.Point(714, 45);
  1384.             this.searchResult.Name = "searchResult";
  1385.             this.searchResult.Size = new System.Drawing.Size(114, 27);
  1386.             this.searchResult.TabIndex = 26;
  1387.             this.searchResult.Text = "Search in Result";
  1388.             this.searchResult.UseVisualStyleBackColor = false;
  1389.             this.searchResult.Click += new System.EventHandler(this.searchResult_Click);
  1390.             //
  1391.             // searchEndTxt
  1392.             //
  1393.             this.searchEndTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1394.             this.searchEndTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  1395.             this.searchEndTxt.Enabled = false;
  1396.             this.searchEndTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1397.             this.searchEndTxt.ForeColor = System.Drawing.Color.White;
  1398.             this.searchEndTxt.Location = new System.Drawing.Point(216, 38);
  1399.             this.searchEndTxt.Name = "searchEndTxt";
  1400.             this.searchEndTxt.Size = new System.Drawing.Size(80, 22);
  1401.             this.searchEndTxt.TabIndex = 25;
  1402.             this.searchEndTxt.Text = "1";
  1403.             //
  1404.             // hexCheck
  1405.             //
  1406.             this.hexCheck.AutoSize = true;
  1407.             this.hexCheck.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1408.             this.hexCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1409.             this.hexCheck.Location = new System.Drawing.Point(156, 12);
  1410.             this.hexCheck.Name = "hexCheck";
  1411.             this.hexCheck.Size = new System.Drawing.Size(49, 19);
  1412.             this.hexCheck.TabIndex = 16;
  1413.             this.hexCheck.Text = "HEX";
  1414.             this.hexCheck.UseVisualStyleBackColor = true;
  1415.             this.hexCheck.CheckedChanged += new System.EventHandler(this.hexCheck_CheckedChanged);
  1416.             //
  1417.             // typeCombo
  1418.             //
  1419.             this.typeCombo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1420.             this.typeCombo.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
  1421.             this.typeCombo.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1422.             this.typeCombo.ForeColor = System.Drawing.Color.White;
  1423.             this.typeCombo.FormattingEnabled = true;
  1424.             this.typeCombo.Items.AddRange(new object[] {
  1425.             "1 Byte",
  1426.             "2 Bytes",
  1427.             "4 Bytes",
  1428.             "Auto Bytes",
  1429.             "Text"});
  1430.             this.typeCombo.Location = new System.Drawing.Point(370, 41);
  1431.             this.typeCombo.Name = "typeCombo";
  1432.             this.typeCombo.Size = new System.Drawing.Size(96, 24);
  1433.             this.typeCombo.TabIndex = 24;
  1434.             //
  1435.             // label6
  1436.             //
  1437.             this.label6.AutoSize = true;
  1438.             this.label6.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1439.             this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1440.             this.label6.Location = new System.Drawing.Point(317, 45);
  1441.             this.label6.Name = "label6";
  1442.             this.label6.Size = new System.Drawing.Size(33, 15);
  1443.             this.label6.TabIndex = 23;
  1444.             this.label6.Text = "Type";
  1445.             //
  1446.             // comboMode
  1447.             //
  1448.             this.comboMode.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1449.             this.comboMode.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
  1450.             this.comboMode.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1451.             this.comboMode.ForeColor = System.Drawing.Color.White;
  1452.             this.comboMode.FormattingEnabled = true;
  1453.             this.comboMode.Items.AddRange(new object[] {
  1454.             "Equals",
  1455.             "Value between"});
  1456.             this.comboMode.Location = new System.Drawing.Point(370, 9);
  1457.             this.comboMode.Name = "comboMode";
  1458.             this.comboMode.Size = new System.Drawing.Size(96, 24);
  1459.             this.comboMode.TabIndex = 6;
  1460.             this.comboMode.SelectedIndexChanged += new System.EventHandler(this.comboMode_SelectedIndexChanged);
  1461.             //
  1462.             // lblMode
  1463.             //
  1464.             this.lblMode.AutoSize = true;
  1465.             this.lblMode.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1466.             this.lblMode.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1467.             this.lblMode.Location = new System.Drawing.Point(317, 13);
  1468.             this.lblMode.Name = "lblMode";
  1469.             this.lblMode.Size = new System.Drawing.Size(38, 15);
  1470.             this.lblMode.TabIndex = 22;
  1471.             this.lblMode.Text = "Mode";
  1472.             //
  1473.             // label5
  1474.             //
  1475.             this.label5.AutoSize = true;
  1476.             this.label5.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1477.             this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1478.             this.label5.Location = new System.Drawing.Point(112, 13);
  1479.             this.label5.Name = "label5";
  1480.             this.label5.Size = new System.Drawing.Size(38, 15);
  1481.             this.label5.TabIndex = 21;
  1482.             this.label5.Text = "Value";
  1483.             //
  1484.             // searchStartTxt
  1485.             //
  1486.             this.searchStartTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1487.             this.searchStartTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  1488.             this.searchStartTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1489.             this.searchStartTxt.ForeColor = System.Drawing.Color.White;
  1490.             this.searchStartTxt.Location = new System.Drawing.Point(215, 10);
  1491.             this.searchStartTxt.Name = "searchStartTxt";
  1492.             this.searchStartTxt.Size = new System.Drawing.Size(80, 22);
  1493.             this.searchStartTxt.TabIndex = 20;
  1494.             this.searchStartTxt.Text = "0";
  1495.             //
  1496.             // label4
  1497.             //
  1498.             this.label4.AutoSize = true;
  1499.             this.label4.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1500.             this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1501.             this.label4.Location = new System.Drawing.Point(599, 13);
  1502.             this.label4.Name = "label4";
  1503.             this.label4.Size = new System.Drawing.Size(18, 15);
  1504.             this.label4.TabIndex = 19;
  1505.             this.label4.Text = "to";
  1506.             //
  1507.             // endRangeTxt
  1508.             //
  1509.             this.endRangeTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1510.             this.endRangeTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  1511.             this.endRangeTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1512.             this.endRangeTxt.ForeColor = System.Drawing.Color.White;
  1513.             this.endRangeTxt.Location = new System.Drawing.Point(621, 9);
  1514.             this.endRangeTxt.Name = "endRangeTxt";
  1515.             this.endRangeTxt.Size = new System.Drawing.Size(69, 22);
  1516.             this.endRangeTxt.TabIndex = 18;
  1517.             this.endRangeTxt.Text = "00000000";
  1518.             //
  1519.             // startRangeTxt
  1520.             //
  1521.             this.startRangeTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
  1522.             this.startRangeTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  1523.             this.startRangeTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1524.             this.startRangeTxt.ForeColor = System.Drawing.Color.White;
  1525.             this.startRangeTxt.Location = new System.Drawing.Point(528, 9);
  1526.             this.startRangeTxt.Name = "startRangeTxt";
  1527.             this.startRangeTxt.Size = new System.Drawing.Size(69, 22);
  1528.             this.startRangeTxt.TabIndex = 17;
  1529.             this.startRangeTxt.Text = "00000000";
  1530.             //
  1531.             // label9
  1532.             //
  1533.             this.label9.AutoSize = true;
  1534.             this.label9.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1535.             this.label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1536.             this.label9.Location = new System.Drawing.Point(485, 13);
  1537.             this.label9.Name = "label9";
  1538.             this.label9.Size = new System.Drawing.Size(43, 15);
  1539.             this.label9.TabIndex = 4;
  1540.             this.label9.Text = "Range";
  1541.             //
  1542.             // btnSearch
  1543.             //
  1544.             this.btnSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
  1545.             this.btnSearch.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
  1546.             this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  1547.             this.btnSearch.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1548.             this.btnSearch.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
  1549.             this.btnSearch.Location = new System.Drawing.Point(714, 8);
  1550.             this.btnSearch.Name = "btnSearch";
  1551.             this.btnSearch.Size = new System.Drawing.Size(114, 27);
  1552.             this.btnSearch.TabIndex = 16;
  1553.             this.btnSearch.Text = "Search";
  1554.             this.btnSearch.UseVisualStyleBackColor = false;
  1555.             this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
  1556.             //
  1557.             // autoUpdateTimer
  1558.             //
  1559.             this.autoUpdateTimer.Interval = 1000;
  1560.             this.autoUpdateTimer.Tick += new System.EventHandler(this.autoUpdateTimer_Tick);
  1561.             //
  1562.             // searchWorker
  1563.             //
  1564.             this.searchWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.searchWorker_DoWork);
  1565.             this.searchWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.searchWorker_RunWorkerCompleted);
  1566.             //
  1567.             // saveWorker
  1568.             //
  1569.             this.saveWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.saveWorker_DoWork);
  1570.             this.saveWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.saveWorker_RunWorkerCompleted);
  1571.             //
  1572.             // label10
  1573.             //
  1574.             this.label10.AutoSize = true;
  1575.             this.label10.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1576.             this.label10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1577.             this.label10.Location = new System.Drawing.Point(897, 8);
  1578.             this.label10.Name = "label10";
  1579.             this.label10.Size = new System.Drawing.Size(234, 24);
  1580.             this.label10.TabIndex = 9;
  1581.             this.label10.Text = "Developed By: Madetho";
  1582.             //
  1583.             // label11
  1584.             //
  1585.             this.label11.AutoSize = true;
  1586.             this.label11.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  1587.             this.label11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
  1588.             this.label11.Location = new System.Drawing.Point(869, 32);
  1589.             this.label11.Name = "label11";
  1590.             this.label11.Size = new System.Drawing.Size(291, 24);
  1591.             this.label11.TabIndex = 10;
  1592.             this.label11.Text = "Customized By: BaSs_HaXoR";
  1593.             //
  1594.             // Form1
  1595.             //
  1596.             this.ClientSize = new System.Drawing.Size(1250, 622);
  1597.             this.Controls.Add(this.label11);
  1598.             this.Controls.Add(this.label10);
  1599.             this.Controls.Add(this.mainTableLayout);
  1600.             this.Location = new System.Drawing.Point(0, 0);
  1601.             this.Name = "Form1";
  1602.             this.Opacity = 0.99D;
  1603.             this.Style = MetroFramework.MetroColorStyle.Purple;
  1604.             this.Text = "CCAPI Debugger";
  1605.             this.Theme = MetroFramework.MetroThemeStyle.Dark;
  1606.             this.Load += new System.EventHandler(this.Form1_Load);
  1607.             this.mainTableLayout.ResumeLayout(false);
  1608.             this.leftLayoutPanel.ResumeLayout(false);
  1609.             this.panelDebugging.ResumeLayout(false);
  1610.             this.panelDebugging.PerformLayout();
  1611.             this.panelOffset.ResumeLayout(false);
  1612.             this.panelOffset.PerformLayout();
  1613.             this.pnlConnection.ResumeLayout(false);
  1614.             this.pnlConnection.PerformLayout();
  1615.             this.hexSearchLayout.ResumeLayout(false);
  1616.             this.hexViewerLayout.ResumeLayout(false);
  1617.             this.hexViewerLayout.PerformLayout();
  1618.             ((System.ComponentModel.ISupportInitialize)(this.searchTbl)).EndInit();
  1619.             this.panel2.ResumeLayout(false);
  1620.             this.panel2.PerformLayout();
  1621.             ((System.ComponentModel.ISupportInitialize)(this.refreshBtn)).EndInit();
  1622.             this.searchPanel.ResumeLayout(false);
  1623.             this.searchPanel.PerformLayout();
  1624.             this.ResumeLayout(false);
  1625.             this.PerformLayout();
  1626.  
  1627.         }
  1628.  
  1629.         private void minusHundred_Click(object sender, EventArgs e)
  1630.         {
  1631.             uint num = Convert.ToUInt32(this.startHex.Text, 0x10) - Convert.ToUInt32(this.jumpUint.Text, 0x10);
  1632.             this.startHex.Text = "0x" + Convert.ToString((long) num, 0x10).ToUpper();
  1633.             this.debugShit();
  1634.         }
  1635.  
  1636.         private void plusHundred_Click(object sender, EventArgs e)
  1637.         {
  1638.             uint num = Convert.ToUInt32(this.startHex.Text, 0x10) + Convert.ToUInt32(this.jumpUint.Text, 0x10);
  1639.             this.startHex.Text = "0x" + Convert.ToString((long) num, 0x10).ToUpper();
  1640.             this.debugShit();
  1641.         }
  1642.  
  1643.         protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
  1644.         {
  1645.             if (keyData == (Keys.Control | Keys.D))
  1646.             {
  1647.                 this.dumbMemoryToFile();
  1648.                 return true;
  1649.             }
  1650.             if (keyData == Keys.F5)
  1651.             {
  1652.                 this.startSearching(1);
  1653.                 return true;
  1654.             }
  1655.             if (keyData == Keys.F6)
  1656.             {
  1657.                 this.debugShit();
  1658.                 return true;
  1659.             }
  1660.             return base.ProcessCmdKey(ref msg, keyData);
  1661.         }
  1662.  
  1663.         private void refreshBtn_Click(object sender, EventArgs e)
  1664.         {
  1665.             this.startSearching(1);
  1666.         }
  1667.  
  1668.         private void saveMemoryToFile(string fileName, uint uintStartOffset, int intDifferenceRange)
  1669.         {
  1670.             try
  1671.             {
  1672.                 FileStream stream = new FileStream(fileName, FileMode.Create, FileAccess.Write);
  1673.                 byte[] bytes = this.PS3.GetBytes(uintStartOffset, intDifferenceRange);
  1674.                 stream.Write(bytes, 0, bytes.Length);
  1675.                 stream.Close();
  1676.             }
  1677.             catch (Exception)
  1678.             {
  1679.                 MessageBox.Show("Could not dump PS3 Memory.");
  1680.             }
  1681.         }
  1682.  
  1683.         private void saveWorker_DoWork(object sender, DoWorkEventArgs e)
  1684.         {
  1685.             object[] argument = (object[]) e.Argument;
  1686.             this.saveMemoryToFile((string) argument[1], (uint) argument[2], (int) argument[3]);
  1687.         }
  1688.  
  1689.         private void saveWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
  1690.         {
  1691.             this.dumpMemoryBtn.Image = null;
  1692.             this.dumpMemoryBtn.Text = "Dump Memory";
  1693.             MessageBox.Show("Saved PS3 Memory Dump.");
  1694.         }
  1695.  
  1696.         private void searchResult_Click(object sender, EventArgs e)
  1697.         {
  1698.             this.startSearching(2);
  1699.         }
  1700.  
  1701.         private void searchTbl_CellClick(object sender, CellClickEventArgs e)
  1702.         {
  1703.             try
  1704.             {
  1705.                 ObjectListView view = (ObjectListView) sender;
  1706.                 OffsetItem selectedObject = (OffsetItem) view.SelectedObject;
  1707.                 this.offsetTxt.Text = selectedObject.Offset;
  1708.                 switch (selectedObject.ByteLength)
  1709.                 {
  1710.                     case 1:
  1711.                         this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadByte(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
  1712.                         this.comboByteLength.SelectedIndex = 0;
  1713.                         break;
  1714.  
  1715.                     case 2:
  1716.                         this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadUInt16(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
  1717.                         this.comboByteLength.SelectedIndex = 1;
  1718.                         break;
  1719.  
  1720.                     case 4:
  1721.                         this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadUInt32(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
  1722.                         this.comboByteLength.SelectedIndex = 2;
  1723.                         break;
  1724.  
  1725.                     default:
  1726.                         this.resultTxt.Text = this.PS3.Extension.ReadString(Convert.ToUInt32(this.offsetTxt.Text, 0x10));
  1727.                         this.comboByteLength.SelectedIndex = 3;
  1728.                         break;
  1729.                 }
  1730.                 this.dexHexCombo.SelectedIndex = 0;
  1731.             }
  1732.             catch (Exception)
  1733.             {
  1734.             }
  1735.         }
  1736.  
  1737.         private void searchTbl_DoubleClick(object sender, EventArgs e)
  1738.         {
  1739.             try
  1740.             {
  1741.                 ObjectListView view = (ObjectListView) sender;
  1742.                 OffsetItem selectedObject = (OffsetItem) view.SelectedObject;
  1743.                 this.startHex.Text = selectedObject.Offset;
  1744.                 this.debugShit();
  1745.             }
  1746.             catch (Exception)
  1747.             {
  1748.             }
  1749.         }
  1750.  
  1751.         private void searchWorker_DoWork(object sender, DoWorkEventArgs e)
  1752.         {
  1753.             object[] argument = (object[]) e.Argument;
  1754.             SearchHandler handler = new SearchHandler((string) argument[1], (string) argument[2], (PS3API) argument[3], (byte[]) argument[4], (byte[]) argument[5], (string) argument[6], (string) argument[7], (int) argument[8]);
  1755.             if (((int) argument[0]) == 0)
  1756.             {
  1757.                 this.resultOffsetList = handler.getResults((string) argument[1], (string) argument[2]);
  1758.             }
  1759.             else if (((int) argument[0]) == 1)
  1760.             {
  1761.                 this.resultOffsetList = handler.getRefreshResults(this.resultOffsetList);
  1762.             }
  1763.             else if (((int) argument[0]) == 2)
  1764.             {
  1765.                 this.resultOffsetList = handler.getSeatchResults(this.resultOffsetList);
  1766.             }
  1767.         }
  1768.  
  1769.         private void searchWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
  1770.         {
  1771.             this.stopWatch.Stop();
  1772.             TimeSpan elapsed = this.stopWatch.Elapsed;
  1773.             string str = string.Format("{0:00}:{1:00}.{2:00}", elapsed.Minutes, elapsed.Seconds, elapsed.Milliseconds / 10);
  1774.             this.stopWatchLabel.Text = str;
  1775.             this.refreshBtn.Image = Resources.staticLoading;
  1776.             this.btnSearch.Enabled = true;
  1777.             this.searchResult.Enabled = true;
  1778.             this.srchLabel.Text = "Search Result (" + this.resultOffsetList.Count + ")";
  1779.             this.searchTbl.SetObjects(this.resultOffsetList);
  1780.         }
  1781.  
  1782.         private void setSearchingValues()
  1783.         {
  1784.             if (this.hexCheck.Checked)
  1785.             {
  1786.                 this.setValueToHEX();
  1787.             }
  1788.             else
  1789.             {
  1790.                 this.setValueToDec();
  1791.             }
  1792.         }
  1793.  
  1794.         private void setValueToDec()
  1795.         {
  1796.             if (this.typeCombo.SelectedIndex != 4)
  1797.             {
  1798.                 try
  1799.                 {
  1800.                     this.searchStartTxt.Text = Convert.ToInt32(this.searchStartTxt.Text, 0x10).ToString();
  1801.                     if (this.comboMode.SelectedIndex == 1)
  1802.                     {
  1803.                         this.searchEndTxt.Text = Convert.ToInt32(this.searchEndTxt.Text, 0x10).ToString();
  1804.                     }
  1805.                 }
  1806.                 catch (Exception)
  1807.                 {
  1808.                     MessageBox.Show("Could not convert to Decimal.");
  1809.                 }
  1810.             }
  1811.             else
  1812.             {
  1813.                 try
  1814.                 {
  1815.                     this.searchStartTxt.Text = ConvertHexToString(this.searchStartTxt.Text).ToUpper();
  1816.                     if (this.comboMode.SelectedIndex == 1)
  1817.                     {
  1818.                         this.searchEndTxt.Text = ConvertHexToString(this.searchEndTxt.Text).ToUpper();
  1819.                     }
  1820.                 }
  1821.                 catch (Exception)
  1822.                 {
  1823.                     MessageBox.Show("Could not convert to String.");
  1824.                 }
  1825.             }
  1826.         }
  1827.  
  1828.         private void setValueToHEX()
  1829.         {
  1830.             if (this.typeCombo.SelectedIndex != 4)
  1831.             {
  1832.                 try
  1833.                 {
  1834.                     this.searchStartTxt.Text = Convert.ToInt64(this.searchStartTxt.Text).ToString("X");
  1835.                     if (this.comboMode.SelectedIndex == 1)
  1836.                     {
  1837.                         this.searchEndTxt.Text = Convert.ToInt64(this.searchEndTxt.Text).ToString("X");
  1838.                     }
  1839.                 }
  1840.                 catch (Exception)
  1841.                 {
  1842.                     MessageBox.Show("Could not convert to HEX.");
  1843.                 }
  1844.             }
  1845.             else
  1846.             {
  1847.                 try
  1848.                 {
  1849.                     this.searchStartTxt.Text = ConvertStringToHex(this.searchStartTxt.Text).ToUpper();
  1850.                     if (this.comboMode.SelectedIndex == 1)
  1851.                     {
  1852.                         this.searchEndTxt.Text = ConvertStringToHex(this.searchEndTxt.Text).ToUpper();
  1853.                     }
  1854.                 }
  1855.                 catch (Exception)
  1856.                 {
  1857.                     MessageBox.Show("Could not convert to HEX.");
  1858.                 }
  1859.             }
  1860.         }
  1861.  
  1862.         public static string SpliceText(string text, int lineLength)
  1863.         {
  1864.             return Regex.Replace(text, "(.{" + lineLength + "})", "$1" + Environment.NewLine);
  1865.         }
  1866.  
  1867.         private void startAutoDebug_CheckedChanged(object sender, EventArgs e)
  1868.         {
  1869.             if (this.startAutoDebug.Checked)
  1870.             {
  1871.                 this.autoUpdateTimer.Interval = Convert.ToInt32(this.autoUpdateTime.Text);
  1872.                 this.autoUpdateTimer.Enabled = true;
  1873.             }
  1874.             else
  1875.             {
  1876.                 this.autoUpdateTimer.Enabled = false;
  1877.             }
  1878.         }
  1879.  
  1880.         private void startDebug_Click(object sender, EventArgs e)
  1881.         {
  1882.             this.debugShit();
  1883.         }
  1884.  
  1885.         private void startSearching(int mode)
  1886.         {
  1887.             if (!this.searchWorker.IsBusy)
  1888.             {
  1889.                 this.stopWatch = new Stopwatch();
  1890.                 this.stopWatch.Start();
  1891.                 this.refreshBtn.Image = Resources.loading1;
  1892.                 this.btnSearch.Enabled = false;
  1893.                 this.searchResult.Enabled = false;
  1894.                 byte[] buffer = this.getBytesByInput(this.searchStartTxt.Text);
  1895.                 byte[] buffer2 = this.getBytesByInput(this.searchEndTxt.Text);
  1896.                 string str = this.getSearchValue(this.searchStartTxt.Text);
  1897.                 string str2 = this.getSearchValue(this.searchEndTxt.Text);
  1898.                 int selectedIndex = this.comboMode.SelectedIndex;
  1899.                 object[] argument = new object[] { mode, this.startRangeTxt.Text, this.endRangeTxt.Text, this.PS3, buffer, buffer2, str, str2, selectedIndex, this.resultOffsetList };
  1900.                 this.searchWorker.RunWorkerAsync(argument);
  1901.             }
  1902.             else
  1903.             {
  1904.                 MessageBox.Show("Wait until search/refresh is finished");
  1905.             }
  1906.         }
  1907.  
  1908.         public static byte[] StringToByteArray(string hex)
  1909.         {
  1910.             if ((hex.Length % 2) != 0)
  1911.             {
  1912.                 hex = "0" + hex;
  1913.             }
  1914.             int length = hex.Length;
  1915.             byte[] buffer = new byte[length / 2];
  1916.             for (int i = 0; i < length; i += 2)
  1917.             {
  1918.                 buffer[i / 2] = Convert.ToByte(hex.Substring(i, 2), 0x10);
  1919.             }
  1920.             return buffer;
  1921.         }
  1922.  
  1923.         private void Form1_Load(object sender, EventArgs e)
  1924.         {
  1925.             if (!File.Exists(Directory.GetCurrentDirectory() + "/CCAPI.DLL"))
  1926.             {
  1927.                 CCAPIno CCno = new CCAPIno();
  1928.                 ipaddress.Enabled = false;
  1929.                 this.radioTMAPI.Checked = true;
  1930.                 CCno.Show();
  1931.             }
  1932.             else
  1933.             {
  1934.                 ipaddress.Enabled = true;
  1935.                 this.radioCCAPI.Checked = true;
  1936.             }
  1937.         }
  1938.  
  1939.         private void metroRadioButton1_CheckedChanged(object sender, EventArgs e)
  1940.         {
  1941.              if (!File.Exists(Directory.GetCurrentDirectory() + "/CCAPI.DLL"))
  1942.             {
  1943.                
  1944.             }
  1945.              else
  1946.             {
  1947.                 this.PS3.ChangeAPI(SelectAPI.ControlConsole);
  1948.                 ipaddress.Enabled = true;
  1949.             }
  1950.         }
  1951.  
  1952.         private void metroRadioButton2_CheckedChanged(object sender, EventArgs e)
  1953.         {
  1954.             if (radioTMAPI.Checked)
  1955.             {
  1956.                 this.PS3.ChangeAPI(SelectAPI.TargetManager);
  1957.             }
  1958.             else
  1959.             {
  1960.                 if (!File.Exists(Directory.GetCurrentDirectory() + "/CCAPI.DLL"))
  1961.                 {
  1962.                     CCAPIno CCno = new CCAPIno();
  1963.                     ipaddress.Enabled = false;
  1964.                     this.radioTMAPI.Checked = true;
  1965.                     CCno.Show();
  1966.                 }
  1967.                 else
  1968.                 {
  1969.                     //   this.rbtnTMAPI.Checked = true;
  1970.                 }
  1971.             }
  1972.         }
  1973.  
  1974.         private void metroButton1_Click(object sender, EventArgs e)
  1975.         {
  1976.             if (!"Disconnect".Equals(this.btnConnection.Text))
  1977.             {
  1978.                 if (this.PS3.ConnectTarget(0))
  1979.                 {
  1980.                     this.connectedLbl.Text = "Connected!";
  1981.                     this.connectedLbl.ForeColor = Color.Orange;
  1982.                     if (this.PS3.AttachProcess())
  1983.                     {
  1984.                         this.connectedLbl.Text = "Attached!";
  1985.                         this.connectedLbl.ForeColor = Color.Green;
  1986.                         this.btnConnection.Text = "Disconnect";
  1987.                     }
  1988.                     else
  1989.                     {
  1990.                         this.connectedLbl.Text = "Game Started?";
  1991.                         this.connectedLbl.ForeColor = Color.OrangeRed;
  1992.                     }
  1993.                 }
  1994.                 else
  1995.                 {
  1996.                     this.connectedLbl.Text = "Couldn't Connect!";
  1997.                     this.connectedLbl.ForeColor = Color.Red;
  1998.                 }
  1999.             }
  2000.             else
  2001.             {
  2002.                 this.PS3.DisconnectTarget();
  2003.                 this.btnConnection.Text = "Connect / Attach";
  2004.                 this.connectedLbl.Text = "Disconnected";
  2005.                 this.connectedLbl.ForeColor = Color.Black;
  2006.             }
  2007.         }
  2008.  
  2009.         [DllImport("User32.dll")]
  2010.         public static extern int SendMessage(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);
  2011.         private void metroButton1_Click_1(object sender, EventArgs e)
  2012.         {
  2013.             int fromBase = 10;
  2014.             if (this.dexHexCombo.SelectedIndex == 0)
  2015.             {
  2016.                 fromBase = 10;
  2017.             }
  2018.             else
  2019.             {
  2020.                 fromBase = 0x10;
  2021.             }
  2022.             try
  2023.             {
  2024.                 switch (this.comboByteLength.SelectedIndex)
  2025.                 {
  2026.                     case 0:
  2027.                         this.PS3.Extension.WriteSByte(Convert.ToUInt32(this.offsetTxt.Text, 0x10), Convert.ToSByte(this.resultTxt.Text, fromBase));
  2028.                         return;
  2029.  
  2030.                     case 1:
  2031.                         this.PS3.Extension.WriteInt16(Convert.ToUInt32(this.offsetTxt.Text, 0x10), Convert.ToInt16(this.resultTxt.Text, fromBase));
  2032.                         return;
  2033.  
  2034.                     case 2:
  2035.                         this.PS3.Extension.WriteInt32(Convert.ToUInt32(this.offsetTxt.Text, 0x10), Convert.ToInt32(this.resultTxt.Text, fromBase));
  2036.                         return;
  2037.  
  2038.                     case 3:
  2039.                         this.PS3.Extension.WriteString(Convert.ToUInt32(this.offsetTxt.Text, 0x10), this.resultTxt.Text);
  2040.                         return;
  2041.                 }
  2042.             }
  2043.             catch (Exception)
  2044.             {
  2045.                 MessageBox.Show("Unexpected error ocurred. Please check your Input.");
  2046.             }
  2047.         }
  2048.  
  2049.         private void metroButton2_Click(object sender, EventArgs e)
  2050.         {
  2051.             switch (this.comboByteLength.SelectedIndex)
  2052.             {
  2053.                 case 0:
  2054.                     this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadByte(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
  2055.                     return;
  2056.  
  2057.                 case 1:
  2058.                     this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadUInt16(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
  2059.                     return;
  2060.  
  2061.                 case 2:
  2062.                     this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadUInt32(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
  2063.                     return;
  2064.  
  2065.                 case 3:
  2066.                     this.resultTxt.Text = this.PS3.Extension.ReadString(Convert.ToUInt32(this.offsetTxt.Text, 0x10));
  2067.                     return;
  2068.             }
  2069.         }
  2070.  
  2071.         private void offsetTxt_TextChanged(object sender, EventArgs e)
  2072.         {
  2073.  
  2074.         }
  2075.  
  2076.         private void comboByteLength_SelectedIndexChanged(object sender, EventArgs e)
  2077.         {
  2078.  
  2079.         }
  2080.  
  2081.         private void resultTxt_TextChanged(object sender, EventArgs e)
  2082.         {
  2083.  
  2084.         }
  2085.  
  2086.         private void dexHexCombo_SelectedIndexChanged(object sender, EventArgs e)
  2087.         {
  2088.  
  2089.         }
  2090.  
  2091.         private void metroTextBox1_Click(object sender, EventArgs e)
  2092.         {
  2093.            
  2094.         }
  2095.  
  2096.         private void pnlConnection_Paint(object sender, PaintEventArgs e)
  2097.         {
  2098.  
  2099.         }
  2100.     }
  2101. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement