private void ScanGames_Click(object sender, EventArgs e) { ResetPanels(); if (form != null) { return; } if (GameManager.Instance.User.InstalledHandlers.Count == 0) { MessageBox.Show("You have no game handlers installed. No games to search for."); return; } form = new SearchStorageForm(); form.FormClosed += Form_FormClosed; form.Show(); DPIManager.ForceUpdate(); }
private void Form_FormClosed(object sender, FormClosedEventArgs e) { form = null; }