Esempio n. 1
0
                    /// <summary>
                    /// 获取命令项
                    /// </summary>
                    /// <param name="index">索引</param>
                    /// <returns>命令项</returns>
                    public EarthView.World.Spatial.SystemUI.Icommand GetCommand(uint index)
                    {
                        IntPtr __ptr = EarthView_World_Spatial_SystemUI_CPopUpMenuEvent_getCommand_ICommand_ev_uint32(this.NativeObject, index);

                        if (__ptr == IntPtr.Zero)
                        {
                            return(null);
                        }
                        EarthView.World.Spatial.SystemUI.Icommand csObj = new EarthView.World.Spatial.SystemUI.Icommand(CreatedWhenConstruct.CWC_NotToCreate);
                        csObj.BindNativeObject(__ptr, "ICommand");
                        csObj.Delegate = true;
                        IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.SystemUI.Icommand;
                            csObj.BindNativeObject(__ptr, "ICommand");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
Esempio n. 2
0
 /// <summary>
 /// 添加命令项
 /// </summary>
 /// <param name="cmd">命令项</param>
 /// <returns></returns>
 public void AddCommand(EarthView.World.Spatial.SystemUI.Icommand ref_cmd)
 {
     EarthView_World_Spatial_SystemUI_CPopUpMenuEvent_addCommand_void_ICommand(this.NativeObject, object.Equals(ref_cmd, null) ? IntPtr.Zero : ref_cmd.NativeObject);
 }
 /// <summary>
 /// 添加命令项
 /// </summary>
 /// <param name="cmd">命令项</param>
 /// <returns></returns>
 /// <memo></memo>
 public void AddCommand(EarthView.World.Spatial.SystemUI.Icommand ref_cmd)
 {
     CCommandPool_addCommand_void_ICommand(this.NativeObject, object.Equals(ref_cmd, null) ? IntPtr.Zero : ref_cmd.NativeObject);
 }