private void cbxDisable_CheckedChanged(object sender, EventArgs e) { if (cbxDisable.Checked) { dsProcess?.OverrideFilter(false); } else { resetFilter(); } }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { if (WindowState == FormWindowState.Normal) { settings.WindowLocation = Location; } else { settings.WindowLocation = RestoreBounds.Location; } settings.LastFilterProfile = cmbProfile.SelectedIndex; settings.DisableFilterOverride = cbxDisable.Checked; settings.ShowActiveFilter = cbxShowActive.Checked; settings.ForceSelectedFilter = cbxForce.Checked; if (dsProcess != null) { if (loaded) { dsProcess.OverrideFilter(false); } dsProcess.Close(); } }