示例#1
0
文件: Form1.cs 项目: caonimagfw/VSCTP
 void Form1_Disposed(object sender, EventArgs e)
 {
     if (DataApi != null)
     {
         DataApi.Dispose();
     }
     if (TraderApi != null)
     {
         TraderApi.Dispose();
     }
 }
示例#2
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (DataApi != null)
     {
         DataApi.Dispose();
         DataApi = null;
     }
 }