private void DisplayForm_FormClosing(object sender, FormClosingEventArgs e) { if (this == Setup.PrimaryDisplayForm) Environment.Exit(0); }