20 lines
No EOL
583 B
C#
20 lines
No EOL
583 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows.Controls;
|
|
|
|
namespace JD.PropertyEditor.View
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for AddElementCustomDialogBoxView.xaml
|
|
/// </summary>
|
|
public partial class AddElementCustomDialogBoxView : UserControl
|
|
{
|
|
public AddElementCustomDialogBoxView(IEnumerable<Type> selectableObjects)
|
|
{
|
|
InitializeComponent();
|
|
ObjectsList.ItemsSource = selectableObjects.OrderBy(s => s.Name);
|
|
ObjectsList.SelectedIndex = 0;
|
|
}
|
|
}
|
|
} |