private void Unload() { Debug.WriteLine("VM: Unload"); api?.Close(); }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { GameAPI.Close(); }