コード例 #1
0
 private void cbxDisable_CheckedChanged(object sender, EventArgs e)
 {
     if (cbxDisable.Checked)
     {
         dsProcess?.OverrideFilter(false);
     }
     else
     {
         resetFilter();
     }
 }
コード例 #2
0
        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();
            }
        }