Ejemplo n.º 1
0
 public override bool CanBeParentedTo(System.ComponentModel.Design.IDesigner parentDesigner)
 {
     if (parentDesigner.Component is MozPane)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
        public static bool _CreateDesigner_System_ComponentModel_IComponent_System_Type( )
        {
            //class object
            System.ComponentModel.TypeDescriptor _System_ComponentModel_TypeDescriptor = new System.ComponentModel.TypeDescriptor();

            //Parameters
            System.ComponentModel.IComponent component = null;
            System.Type designerBaseType = null;

            //ReturnType/Value
            System.ComponentModel.Design.IDesigner returnVal_Real        = null;
            System.ComponentModel.Design.IDesigner returnVal_Intercepted = null;

            //Exception
            System.Exception exception_Real        = null;
            System.Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                returnVal_Real = _System_ComponentModel_TypeDescriptor.CreateDesigner(component, designerBaseType);
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnVal_Intercepted = _System_ComponentModel_TypeDescriptor.CreateDesigner(component, designerBaseType);
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted));
        }
 // Constructors
 public ComponentTray(System.ComponentModel.Design.IDesigner mainDesigner, System.IServiceProvider serviceProvider)
 {
 }
Ejemplo n.º 4
0
 public virtual bool CanBeParentedTo(System.ComponentModel.Design.IDesigner parentDesigner)
 {
 }
Ejemplo n.º 5
0
 public override bool CanBeParentedTo(System.ComponentModel.Design.IDesigner parentDesigner)
 {
     return(parentDesigner.Component is vTabControl);
 }