/// <summary> /// Handles the Expanded event of the leftNavXPPanel control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param> private void LeftNavXPPanel_Expanded(object sender, EventArgs e) { xpPanelGroup3.Enabled = true; TerraScan.XPPanel.TerraScanXPPanel selectedXPPanel = (TerraScanXPPanel)sender; selectedXPPanel.Focus(); //// Collapse the other panles foreach (TerraScanXPPanel tempXPPanel in this.xpPanelGroup3.Controls) { if (selectedXPPanel.Name != tempXPPanel.Name) { tempXPPanel.PanelState = XPPanelState.Collapsed; } } }
/// <summary> /// Handles the Expanded event of the leftNavXPPanel control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param> private void LeftNavXPPanel_Collapsed(object sender, EventArgs e) { TerraScan.XPPanel.TerraScanXPPanel selectedXPPanel = (TerraScanXPPanel)sender; selectedXPPanel.Focus(); }