void Form1_Disposed(object sender, EventArgs e) { if (DataApi != null) { DataApi.Dispose(); } if (TraderApi != null) { TraderApi.Dispose(); } }
private void button3_Click(object sender, EventArgs e) { if (DataApi != null) { DataApi.Dispose(); DataApi = null; } }