Ejemplo n.º 1
0
        private void CreateCheckboxListControl(NameAttribute displayNameAttribute, CheckBoxList sourceList, Binding b)
        {
            var checkBoxListControl = new ConfigCheckBoxListControl(_localController.GetLocalStrings <SDGuiStrings>());

            checkBoxListControl.ConfigItemDisplayName = _localController.GetLocalString(displayNameAttribute.LocalType, displayNameAttribute.DisplayName);
            checkBoxListControl.SourceList            = sourceList;
            checkBoxListControl.SetBinding(ConfigCheckBoxListControl.SelectedItemsProperty, b);

            configItemPanel.Children.Add(checkBoxListControl);
        }
Ejemplo n.º 2
0
        private void CreateCheckboxListControl(NameAttribute displayNameAttribute, CheckBoxList sourceList, Binding b)
        {
            var checkBoxListControl = new ConfigCheckBoxListControl(_localController.GetLocalStrings<SDGuiStrings>());
            checkBoxListControl.ConfigItemDisplayName = _localController.GetLocalString(displayNameAttribute.LocalType, displayNameAttribute.DisplayName);
            checkBoxListControl.SourceList = sourceList;
            checkBoxListControl.SetBinding(ConfigCheckBoxListControl.SelectedItemsProperty, b);

            configItemPanel.Children.Add(checkBoxListControl);
        }