title: Simple switch causes stack overflow
body: <p>Why this simple code causes fallowing error : </p>
  
  <p>Cannot evaluate expression because the current thread is in a stack overflow state.</p>
  
  <pre><code>private void barButtonPanelVisibleCheck_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
  {
      switch (barButtonPanelVisibleCheck.Checked)
      {
          case true:
              this.navBarControl.Visible = false;
              this.barButtonPanelVisibleCheck.Checked = false;
              break;
          case false:
              this.navBarControl.Visible = true;
              this.barButtonPanelVisibleCheck.Checked = true;
              break;
      }
  
      //or
  
      if (barButtonPanelVisibleCheck.Checked == true)
      {
          this.navBarControl.Visible = false;
          this.barButtonPanelVisibleCheck.Checked = false;
      }
      else
      {
          this.navBarControl.Visible = true;
          this.barButtonPanelVisibleCheck.Checked = true;
      }
  
  }
  </code></pre>