Esempio n. 1
0
        /// <summary>
        /// Update the node with the controls values.
        /// </summary>
        /// <param name="userNode">Node being updated by property page</param>
        public void UpdateData(object selectionObject)
        {
            SettingItem selectedSetting = (SettingItem)selectionObject;

            EntityReader.SetPropertyValue(selectedSetting.SettingName, selectedSetting.SettingsCategoryInfo.Settings, txtValue.Text);
            selectedSetting.RefreshSettingsByCategory(txtValue.Text);
            selectedSetting.SettingsCategoryInfo.Settings.SaveToFile();
            _parentPropertyPage.Dirty = false;
        }
        /// <summary>
        /// Update the node with the controls values.
        /// </summary>
        /// <param name="userNode">Node being updated by property page</param>
        public void UpdateData(object selectionObject)
        {
            SettingItem selectedSetting = (SettingItem)selectionObject;
            long        value           = Convert.ToInt64(txtValue.Value);

            EntityReader.SetPropertyValue(selectedSetting.SettingName, selectedSetting.SettingsCategoryInfo.Settings, value);
            selectedSetting.RefreshSettingsByCategory(value.ToString());
            selectedSetting.SettingsCategoryInfo.Settings.SaveToFile();
            _parentPropertyPage.Dirty = false;
        }