private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { lock ( closeLock ) { bClosing = true; } SteamContext.StopCallbacks(); }
public static void Main() { try { SteamContext.Initialize(); } catch (Exception ex) { Util.MsgBox("Unable to initialize Steam Context: " + ex.Message + "\n\n" + ex.ToString()); return; } Application.Run(new MainForm()); SteamContext.Shutdown(); }
private void MainForm_Shown(object sender, EventArgs e) { SteamContext.StartCallbacks(); }