private void Form2_FormClosed(object sender, FormClosedEventArgs e) { foreach (var item in this.hookedProcesses.Values.ToArray()) { if (item.CaptureProcess != null) { if (!item.CaptureProcess.Process.HasExited) { item.CaptureProcess.CaptureInterface.Disconnect(); } } } RegistryUtility.SaveSetting("ShowFPS", this.showFPSToolStripMenuItem.Checked); }
private void Form2_Load(object sender, EventArgs e) { this.showFPSToolStripMenuItem.Checked = RegistryUtility.GetSetting("ShowFPS", this.showFPSToolStripMenuItem.Checked); }