mirror of
https://github.com/yck1509/ConfuserEx
synced 2026-06-08 18:29:44 +00:00
32 lines
1.4 KiB
C#
32 lines
1.4 KiB
C#
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<ConfuserComponent>), 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<string, string>), typeof(CompComboBox), new UIPropertyMetadata(null));
|
|
|
|
public CompComboBox() {
|
|
InitializeComponent();
|
|
}
|
|
|
|
public IEnumerable<ConfuserComponent> Components {
|
|
get { return (IEnumerable<ConfuserComponent>)GetValue(ComponentsProperty); }
|
|
set { SetValue(ComponentsProperty, value); }
|
|
}
|
|
|
|
public ConfuserComponent SelectedComponent {
|
|
get { return (ConfuserComponent)GetValue(SelectedComponentProperty); }
|
|
set { SetValue(SelectedComponentProperty, value); }
|
|
}
|
|
|
|
public Dictionary<string, string> Arguments {
|
|
get { return (Dictionary<string, string>)GetValue(ArgumentsProperty); }
|
|
set { SetValue(ArgumentsProperty, value); }
|
|
}
|
|
}
|
|
} |