예제 #1
0
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider,
                                         object value)
        {
            var se = (SEReference)value;

            using (var selector = new SoundSelector())
            {
                var id = se.ID;
                selector.SetSelect(id);
                if (selector.ShowDialog() == DialogResult.OK && selector.Result != id)
                {
                    se.ID = id;
                }
                return(se);
            }
        }