Example #1
0
        public override Object EditValue(ITypeDescriptorContext context, IServiceProvider provider, Object value)
        {
            if ((context != null) && (provider != null))
            {
                System.Windows.Forms.Design.IWindowsFormsEditorService svc = (System.Windows.Forms.Design.IWindowsFormsEditorService)
                  provider.GetService(typeof(System.Windows.Forms.Design.IWindowsFormsEditorService));

                if (svc != null)
                {
                    SequenceEditorWindow ipfrm = new SequenceEditorWindow((TextureList)value);
                    ipfrm.ShowDialog();
                }
            }
            return base.EditValue(context, provider, value);
        }