Example #1
0
                public EarthView.World.Graphic.ConfigOption Get(string key)
                {
                    IntPtr __ptr = EarthView_World_Graphic_ConfigOptionMap_get_ConfigOption_EVString(this.NativeObject, key);

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

                    if (csObjClassFactory != null)
                    {
                        csObj.Delegate = true;
                        csObj          = csObjClassFactory.Create() as EarthView.World.Graphic.ConfigOption;
                        csObj.BindNativeObject(__ptr, "ConfigOption");
                        csObj.Delegate = true;
                    }
                    return(csObj);
                }
Example #2
0
                public bool Push(string key, EarthView.World.Graphic.ConfigOption val)
                {
                    byte ret = EarthView_World_Graphic_ConfigOptionMap_push_ev_bool_EVString_ConfigOption(this.NativeObject, key, object.Equals(val, null) ? IntPtr.Zero : val.NativeObject);

                    return(Convert.ToBoolean(ret));
                }