Exemplo n.º 1
0
 private void EnterBtn_Click(object sender, EventArgs e)
 {
     if (CcNumber.Visible)
     {
         if (CcNumber.TextLength < 19)
         {
             MessageBox.Show("Enter a valid Credit Card number to continue...");
         }
         else if (CcNumber.Text != "" && CcNumber.TextLength == 19)
         {
             RequestPinNumber();
         }
     }
     else
     {
         if (PinNumber.TextLength < 4)
         {
             MessageBox.Show("Enter a 4-Digit Pin number to continue...");
         }
         else
         {
             //AsynchronousClient.StartClient(XmlSerialization.LoginData(CcNumber.Text, PinNumber.Text));
             SynchronousClient.StartClient(XmlSerialization.LoginData(CcNumber.Text, PinNumber.Text));
         }
     }
 }
Exemplo n.º 2
0
        public void tryCommunicateSender(String x)
        {
            while (SenderIP == "")
            {
                System.Threading.Thread.Sleep(1000);
            }
            SynchronousClient.StartClient(x); //start sending info
            communication_started_Sender = false;

            //AsynchronousSocketListener.StartListening();
        }