using System; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using Confuser.Core; namespace ConfuserEx { public partial class CompComboBox : UserControl { public static readonly DependencyProperty ComponentsProperty = DependencyProperty.Register("Components", typeof(IEnumerable), typeof(CompComboBox), new UIPropertyMetadata(null)); public static readonly DependencyProperty SelectedComponentProperty = DependencyProperty.Register("SelectedComponent", typeof(ConfuserComponent), typeof(CompComboBox), new UIPropertyMetadata(null)); public static readonly DependencyProperty ArgumentsProperty = DependencyProperty.Register("Arguments", typeof(Dictionary), typeof(CompComboBox), new UIPropertyMetadata(null)); public CompComboBox() { InitializeComponent(); } public IEnumerable Components { get { return (IEnumerable)GetValue(ComponentsProperty); } set { SetValue(ComponentsProperty, value); } } public ConfuserComponent SelectedComponent { get { return (ConfuserComponent)GetValue(SelectedComponentProperty); } set { SetValue(SelectedComponentProperty, value); } } public Dictionary Arguments { get { return (Dictionary)GetValue(ArgumentsProperty); } set { SetValue(ArgumentsProperty, value); } } } }