Exemple #1
0
 private void closeBTN_Click(object sender, EventArgs e)
 {
     try
     {
         if (eR_Toggle1.Toggled)
         {
             UnknownAPI.Disconnect(ipBox.Text);
         }
         if (!atkbtn.Text.Contains("Connect"))
         {
             UnknownAPI.Disconnect(atkbtn.Tag.ToString());
         }
         //settiing changed
         atkbtn.Text = "       Connect";
         sname.Text  = "• Server name: ";
         status.Text = "Status: Disconnected!";
         Alert("You have been logged out!", NotifyUI.enmType.Info);
         var Login = new UnknownVPN.LoginUI();
         Login.Show();
         Close();
     }
     catch (Exception LOL)
     {
         Console.Write(LOL.Message);
     }
 }
        private void CloseBTN_Click(object sender, EventArgs e)
        {
            var Login = new UnknownVPN.LoginUI();

            Login.Show();
            Close();
        }