Exemple #1
0
 private void ToggleNetwork()
 {
     if (isGTAVRunning())
     {
         if (!tmrNetwork.Enabled)
         {
             DataStorage.pPending.Play();
             NetworkConnectionControl.Disconnect();
             tmrNetwork.Start();
         }
     }
     else
     {
         Activate();
         MessageBox.Show("GTA V was not detected!", "SessionSweeper", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemple #2
0
 private void tmrNetwork_Tick(object sender, EventArgs e)
 {
     NetworkConnectionControl.Connect();
     DataStorage.pSweeped.Play();
     tmrNetwork.Stop();
 }