SetData() public method

public SetData ( object o ) : void
o object
return void
コード例 #1
0
        private void OnGetSettingsCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            try
            {
                object o = e.Result;

                _file = new PHPIniFile();
                _file.SetData(o);

                LoadPHPIni(_file);

                // If updated setting name was saved then use it to re-select it after refresh
                if (!String.IsNullOrEmpty(_updatedSettingName))
                {
                    SelectSettingByName(_updatedSettingName);
                    _updatedSettingName = null;
                }
            }
            catch (Exception ex)
            {
                DisplayErrorMessage(ex, Resources.ResourceManager);
            }
        }
コード例 #2
0
        protected override PropertyBag GetProperties()
        {
            PropertyBag result = new PropertyBag();

            object o = Module.Proxy.GetPHPIniSettings();
            PHPIniFile file = new PHPIniFile();
            file.SetData(o);

            for (int i = 0; i < _settingNames.Length; i++)
            {
                PHPIniSetting setting = file.GetSetting(_settingNames[i]);
                if (setting != null)
                {
                    result[i] = setting.Value;
                }
            }
           
            return result;
        }
コード例 #3
0
        private void OnGetExtensionsCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            try
            {
                object o = e.Result;

                _file = new PHPIniFile();
                _file.SetData(o);

                LoadExtensions(_file);

                // If name of the updated extension was saved then use it to re-select it.
                if (!String.IsNullOrEmpty(_updatedExtensionName))
                {
                    SelectExtensionByName(_updatedExtensionName);
                    _updatedExtensionName = null;
                }
            }
            catch (Exception ex)
            {
                DisplayErrorMessage(ex, Resources.ResourceManager);
            }
        }
コード例 #4
0
        private void OnGetSettingsCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            try
            {
                object o = e.Result;

                PHPIniFile file = new PHPIniFile();
                file.SetData(o);

                UpdateUI(file);
            }
            catch (Exception ex)
            {
                DisplayErrorMessage(ex, Resources.ResourceManager);
            }
        }