Ejemplo n.º 1
0
        private void EditableListChanged(ListBox listBox, ObsProperty property, ObsData setting)
        {
            string propertyName = property.Name;
            ObsDataArray array = new ObsDataArray();

            foreach (string item in listBox.Items)
            {
                ObsData itemArray = new ObsData();
                itemArray.SetString("value", item);

                array.Add(itemArray);
                itemArray.Dispose();
            }

            setting.SetArray(propertyName, array);
            array.Dispose();
        }