Beispiel #1
0
 private void SUDOKU3x3_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         ASCIIEncoding encode = new ASCIIEncoding();
         Control1.byteSend = encode.GetBytes("x");
         Control1.stm.Write(Control1.byteSend, 0, Control1.byteSend.Length);
         Control1.tcpclnt.Close();
         Control1.Exit();
     }
     catch
     {
     }
 }
Beispiel #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         ASCIIEncoding encode = new ASCIIEncoding();
         Control1.byteSend = encode.GetBytes("x");
         Control1.stm.Write(Control1.byteSend, 0, Control1.byteSend.Length);
         Control1.tcpclnt.Close();
         Control1.Exit();
     }
     catch
     {
     }
     this.Close();
 }