コード例 #1
0
                protected void EarthView_World_Core_CEventObject_onCustomEvent_void_CEvent_Function(IntPtr e)
                {
                    EarthView.World.Core.Event csobj_e = new EarthView.World.Core.Event(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_e.BindNativeObject(e, "CEvent");
                    csobj_e.Delegate = true;
                    IClassFactory csobj_eClassFactory = GlobalClassFactoryMap.Get(csobj_e.GetCppInstanceTypeName());

                    if (csobj_eClassFactory != null)
                    {
                        csobj_e.Delegate = true;
                        csobj_e          = csobj_eClassFactory.Create() as EarthView.World.Core.Event;
                        csobj_e.BindNativeObject(e, "CEvent");
                        csobj_e.Delegate = true;
                    }

                    OnCustomEvent(csobj_e);
                }
コード例 #2
0
                protected byte EarthView_World_Core_CEventObject_onEvent_ev_bool_CEvent_Function(IntPtr e)
                {
                    EarthView.World.Core.Event csobj_e = new EarthView.World.Core.Event(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_e.BindNativeObject(e, "CEvent");
                    csobj_e.Delegate = true;
                    IClassFactory csobj_eClassFactory = GlobalClassFactoryMap.Get(csobj_e.GetCppInstanceTypeName());

                    if (csobj_eClassFactory != null)
                    {
                        csobj_e.Delegate = true;
                        csobj_e          = csobj_eClassFactory.Create() as EarthView.World.Core.Event;
                        csobj_e.BindNativeObject(e, "CEvent");
                        csobj_e.Delegate = true;
                    }

                    bool csret = OnEvent(csobj_e);

                    return(Convert.ToByte(csret));
                }