コード例 #1
0
ファイル: MozItem.cs プロジェクト: yyan/winform
 public override bool CanBeParentedTo(System.ComponentModel.Design.IDesigner parentDesigner)
 {
     if (parentDesigner.Component is MozPane)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
コード例 #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));
        }
コード例 #3
0
 // Constructors
 public ComponentTray(System.ComponentModel.Design.IDesigner mainDesigner, System.IServiceProvider serviceProvider)
 {
 }
コード例 #4
0
 public virtual bool CanBeParentedTo(System.ComponentModel.Design.IDesigner parentDesigner)
 {
 }
コード例 #5
0
ファイル: TabPageDesigner.cs プロジェクト: mythslove/12306-1
 public override bool CanBeParentedTo(System.ComponentModel.Design.IDesigner parentDesigner)
 {
     return(parentDesigner.Component is vTabControl);
 }