protected override void UpdateAfter() { // Automatically connect once the game is running if (!_connected) { Gb.SetPrinterCallback(OnPrint); _connected = true; } }
private void GBPrinterView_FormClosed(object sender, FormClosedEventArgs e) { Gb?.SetPrinterCallback(null); }