示例#1
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     Client.Dispose();
     Client = null;
     appClient.Dispose();
     appClient = null;
 }
示例#2
0
 public void TearDown()
 {
     Server.Dispose(); Server = null;
     Client.Dispose(); Client = null;
     Debug.WriteLine("Fixture Tear Down Completed.");
 }
示例#3
0
 public void TearDown()
 {
     Server.Stop();
     Server.Dispose();
     Client.Dispose();
 }
示例#4
0
 public void Cleanup()
 {
     Server.Dispose();
     Client.Dispose();
     Tcp.Dispose();
 }
示例#5
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     ptrClient = null;
     AppClient.Dispose(); AppClient = null;
     TcpClient.Dispose(); TcpClient = null;
 }
示例#6
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     Client.Dispose(); Client = null;
 }