23 lines
791 B
C#
23 lines
791 B
C#
using System.Linq;
|
|
using JD.Collections.Extensions;
|
|
using TeaBox;
|
|
using TeaBox.Gui.PropertyGrid;
|
|
using JD.Serialization;
|
|
|
|
namespace JD.Timeline.View.PropertyGrid
|
|
{
|
|
[System.ComponentModel.Composition.Export("PictogramModelEditor")]
|
|
public class PictogramModelEditor : ComboEditor<PictogramModel>
|
|
{
|
|
protected override void OnEditionStarted()
|
|
{
|
|
ComboBox.Items.Clear();
|
|
var model = (PictogramModel)CurrentRow.Value;
|
|
foreach (var pictogramModel in model.Tape.PictogramModels().AsSorted((m1, m2) => System.String.Compare(m1.Name, m2.Name, System.StringComparison.Ordinal)))
|
|
{
|
|
AddComboBoxItem(pictogramModel, pictogramModel.ToString());
|
|
}
|
|
base.OnEditionStarted();
|
|
}
|
|
}
|
|
}
|