示例#1
0
        /// ------------------------------------------------------------------------------------
        /// <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);
        }
示例#2
0
        /// ------------------------------------------------------------------------------------
        /// <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);
        }