Пример #1
0
        public void Load(BinaryReader reader)
        {
            // Clear custom registry values
            MainWindow.itemsCustomRegistryValues.Items.Clear();

            // Get number of custom registry values
            int count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                // Get control with properties
                ControlCustomRegistryValue control = ControlCustomRegistryValue.Parse(reader);

                // Add control to ItemsControl
                MainWindow.itemsCustomRegistryValues.Items.Add(control);
            }
        }
Пример #2
0
        private void btnAddCustomRegistryValue(object sender, RoutedEventArgs e)
        {
            ControlCustomRegistryValue control = new ControlCustomRegistryValue();

            itemsCustomRegistryValues.Items.Add(control);
        }