/// ------------------------------------------------------------------------------------ /// <summary> /// Save the active tab. /// </summary> /// /// <param name='key'>The Registry Key.</param> /// ------------------------------------------------------------------------------------ protected void SaveSettings(RegistryKey key) { IRegistryKeyNameModifier modifier = Parent as IRegistryKeyNameModifier; if (modifier != null) { key = modifier.ModifyKey(key, true); } key.SetValue(Name + "ActiveTab", m_iActive); key.SetValue(Name + "Width", Width); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Load the active tab. /// </summary> /// /// <param name='key'>The Registry Key.</param> /// ------------------------------------------------------------------------------------ protected void LoadSettings(RegistryKey key) { IRegistryKeyNameModifier modifier = Parent as IRegistryKeyNameModifier; if (modifier != null) { key = modifier.ModifyKey(key, false); } ActivateTab((int)key.GetValue(Name + "ActiveTab", m_iActive)); Width = (int)key.GetValue(Name + "Width", Width); }