Пример #1
0
        private void Main_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (oThread != null && oThread.IsAlive)
            {
                MW3_BOT.thread_stop = true;
                MW3_GUARDER.Stop();

                while (oThread.IsAlive)
                {
                    Thread.Sleep(200);
                }
            }

            PS3.DisconnectTarget();
        }
Пример #2
0
 private void metroButton3_Click(object sender, EventArgs e)
 {
     PS3.CCAPI.Notify(CCAPI.NotifyIcon.INFO, "PsToolPro est deconnecter");
     PS3.CCAPI.RingBuzzer(CCAPI.BuzzerMode.Double);
     PS3.DisconnectTarget();
     MessageBox.Show("PSToolPro s'est déconnecté avec succès.", "Déconnexion avec succès.");
     metroLabel1.Text = "Connecter: Non";
     metroLabel2.Text = "Attacher: Non";
 }
        /// <summary>
        /// Disconnect from your PlayStation 3.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DisconnectButton_Click(object sender, RoutedEventArgs e)
        {
            clickSound.Play();
            if (isConnected)
            {
                mainPS3.DisconnectTarget();
                isConnected = false;
            }

            else
            {
                MessageBox.Show("You must first be connected to your PlayStation 3 to disconnect from it.", "Error!", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
Пример #4
0
 private void Main_FormClosing(object sender, FormClosingEventArgs e)
 {
     PS3.DisconnectTarget();
 }
Пример #5
0
 private void Disconnect_Click(object sender, EventArgs e)
 {
     PS3.DisconnectTarget(); //Disconnects the PS3 from the computer
     MessageBox.Show("Disconnected", "Disconnected", MessageBoxButtons.OK);
 }
Пример #6
0
 private void conBtnCex_Click(object sender, EventArgs e)
 {
     try
     {
         API = false;
         if (API == false)
         {
             PS3.ChangeAPI(SelectAPI.ControlConsole);
         }
         if (conBtnCex.Text == "Connect [ CEX ]")
         {
             if (PS3.ConnectTarget())
             {
                 conBtnCex.Text    = "Attach";
                 alertBox1.kind    = theme.FlatAlertBox._Kind.Success;
                 alertBox1.Text    = "Connected";
                 alertBox1.Visible = true;
                 alertBox1.Refresh();
             }
             else
             {
                 alertBox1.kind    = theme.FlatAlertBox._Kind.Error;
                 alertBox1.Text    = "Error";
                 alertBox1.Visible = true;
                 alertBox1.Refresh();
             }
         }
         else if (conBtnCex.Text == "Attach")
         {
             if (PS3.AttachProcess())
             {
                 RPC.Init();
                 if (antiBanCh.Checked)
                 {
                     Func.Antiban.EnableAntiBan();
                 }
                 antiBanBtn.Visible = false;
                 antiBanCh.Visible  = false;
                 userName           = Functions.ReadStr(Offsets.NonHost.LocalName);
                 userClan           = Func.Clan.GetClan();
                 nameLbl.Text       = "Welcome : " + userName;
                 PS3.CCAPI.Notify(CCAPI.NotifyIcon.FRIEND, "Welcome : \n\n" + userName + "\n\nThx for using \nBISOON's RTM Tool <3");
                 Func.changeStr.ChangeString(false);
                 Functions.WriteStr(Offsets.NonHost.FPSText, "^1BISOON ^3<3");
                 Func.NonHost.FPS(true);
                 this.BISOON.Icon            = this.Icon;
                 this.BISOON.BalloonTipIcon  = ToolTipIcon.Info;
                 this.BISOON.BalloonTipText  = "Welcome  \n\n  " + (userName) + "\n\nHave Fun :)\n";
                 this.BISOON.BalloonTipTitle = "BISOON RTM Tool";
                 this.BISOON.ShowBalloonTip(20);
                 openRtmBtn.Visible = true;
                 alertBox1.kind     = theme.FlatAlertBox._Kind.Success;
                 alertBox1.Text     = "Attached";
                 alertBox1.Visible  = true;
                 alertBox1.Refresh();
                 conBtnCex.Text = "Disconnect";
             }
             else
             {
                 alertBox1.kind    = theme.FlatAlertBox._Kind.Error;
                 alertBox1.Text    = "Error";
                 alertBox1.Visible = true;
                 alertBox1.Refresh();
                 conBtnCex.Text = "Connect [ CEX ]";
             }
         }
         else if (conBtnCex.Text == "Disconnect")
         {
             PS3.DisconnectTarget();
             conBtnCex.Text = "Connect [ CEX ]";
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("There is something error \n" + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }