Пример #1
0
        private void button_gateshark_execute_Click(object sender, EventArgs e)
        {
            String    code = textBox_gateshark.Text;
            gateshark gs   = new gateshark(code);

            gs.execute();
        }
Пример #2
0
 public void setCode(gateshark s)
 {
     if (heartbeatThread != null)
     {
         if (heartbeatThread.IsAlive)
         {
             hb.setCode(s);
         }
     }
 }
Пример #3
0
        // END of Basic

        //________________________________________________________________

        // Gateshark development

        private void button_gateshark_parse_Click(object sender, EventArgs e)
        {
            textBox_gateshark_parsed.Text = String.Empty;
            gateshark gs = new gateshark(textBox_gateshark.Text);

            foreach (gateshark_ar gs_ar in gs.getAllCodes())
            {
                Int32  cmd     = gs_ar.getCMD();
                Int32  block_a = gs_ar.getBlock_A();
                UInt32 block_b = gs_ar.getBlock_B();
                String parsed  = String.Format("{0:X} {1:X} {2:X}\r\n", cmd, block_a, block_b);
                textBox_gateshark_parsed.AppendText(parsed);
            }
        }
Пример #4
0
        private void button_mh4u_eu_mon2_kill_Click(object sender, EventArgs e)
        {
            String gs_code =
                "D3000000 081C8174\r\n" +
                "40000000 08000000\r\n" +
                "30000000 0B13EFFF\r\n" +
                "B0000000 00000000\r\n" +
                "DC000000 00000E28\r\n" +
                "40000000 08000000\r\n" +
                "30000000 0B13EFFF\r\n" +
                "B0000000 00000000\r\n" +
                "DC000000 000003E8\r\n" +
                "10000000 00000001\r\n" +
                "D0000000 00000000\r\n" +
                "D0000000 00000000\r\n" +
                "D0000000 00000000\r\n" +
                "D0000000 00000000";

            gateshark code = new gateshark(gs_code);

            code.execute();
        }
Пример #5
0
 public void setCode(gateshark s)
 {
     gs_code = s;
     Console.WriteLine("Set code by instance");
 }
Пример #6
0
        public void setCode(String s)
        {
            gs_code = new gateshark(s);

            Console.WriteLine("Set code by String");
        }