bool connected()
 {
     Jtag.Connect();
     if (Jtag.activeConnection)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Jtag.Connect();
     Console.Connect();
     if (Console.activeConnection && Jtag.activeConnection)
     {
         MessageBox.Show("Connected");
     }
     else
     {
         MessageBox.Show("Fix your plugins");
     }
 }
 private void connect_Click(object sender, EventArgs e)
 {
     try
     {
         Random l = new Random();
         int    r = l.Next(20, 40);
         connectionStatusBar.Value = 0;
         for (int n = connectionStatusBar.Value; n <= r; n++)
         {
             System.Threading.Thread.Sleep(7);
             connectionStatusBar.Value++;
         }
         Jtag.Connect();
         if (Jtag.activeConnection == true)
         {
             int w = l.Next(60, 80);
             for (int t = r; t <= w; t++)
             {
                 System.Threading.Thread.Sleep(5);
                 connectionStatusBar.Value++;
             }
             Console.Connect();
             if (Console.activeConnection == true)
             {
                 for (int u = connectionStatusBar.Value; u <= 100; u++)
                 {
                     System.Threading.Thread.Sleep(7);
                     connectionStatusBar.Value++;
                 }
                 EnorDi(true);
                 status.Text = "Status: Successful";
             }
             else
             {
                 EnorDi(false);
                 status.Text = "Status: Failed";
             }
         }
         else
         {
             EnorDi(false);
             status.Text = "Status: Failed";
         }
     }
     catch
     {
         EnorDi(false);
         status.Text = "Status: Failed";
     }
 }
 private void JRPCCheck()
 {
     try
     {
         Console.Connect();
         if (Console.activeConnection == true)
         {
             Log.Items.Add("JRPC Connection: Passed");
         }
         else if (Console.activeConnection == false)
         {
             Log.Items.Add("JRPC Connection: Failed");
         }
     }
     catch (Exception)
     {
         Log.Items.Add("JRPC Connection: Failed");
     }
 }
示例#5
0
 private void Connect_Click(object sender, EventArgs e)
 {
     try
     {
         Console.Connect();
         if (Console.activeConnection)
         {
             this.Size = new Size(FormX, FormY);
             MessageBox.Show("Connection to Console Succesful!");
         }
         else
         {
             MessageBox.Show("Unable to connect to the console. \r\nMake sure JRPC.xex is set as a plugin,");
         }
     }
     catch
     {
         MessageBox.Show("Unable to connect to the console. \r\nMake sure JRPC.xex is set as a plugin,");
     }
 }
示例#6
0
 private void button1_Click(object sender, EventArgs e)
 {
     xbox.Connect();
     checkBox1.Checked = xbox.activeConnection ? true : false;
 }