Exemple #1
0
    public void testqueryMapObj()
    {
        mapObj      map      = new mapObj(mapfile);
        queryMapObj querymap = map.querymap;

        querymap.color.setHex("#13ba88");

        map = null;
        gc();
        assert(querymap.color.toHex() == "#13ba88", "testqueryMapObj");
    }
 internal static HandleRef getCPtrAndSetReference(queryMapObj obj, object parent) {
   if (obj != null)
   {
     obj.swigParentRef = parent;
     return obj.swigCPtr;
   }
   else
   {
     return new HandleRef(null, IntPtr.Zero);
   }
 }
        /// <summary>
        /// Update the scalebar object according to the current Editor state.
        /// </summary>
        /// <param name="queryMap">The object to be updated.</param>
        private void Update(queryMapObj queryMap)
        {
            if (comboBoxStatus.SelectedItem.ToString() == "MS_ON")
            {
                queryMap.status = mapscript.MS_ON;
            }
            else
            {
                queryMap.status = mapscript.MS_OFF;
            }

            queryMap.style = (int)comboBoxStyle.SelectedItem;

            this.colorPickerColor.ApplyTo(queryMap.color);
        }
        /// <summary>
        /// Update the scalebar object according to the current Editor state.
        /// </summary>
        /// <param name="queryMap">The object to be updated.</param>
        private void Update(queryMapObj queryMap)
        {
            if (comboBoxStatus.SelectedItem.ToString() == "MS_ON")
                queryMap.status = mapscript.MS_ON;
            else
                queryMap.status = mapscript.MS_OFF;

            queryMap.style = (int)comboBoxStyle.SelectedItem;

            this.colorPickerColor.ApplyTo(queryMap.color);
        }
 internal static HandleRef getCPtr(queryMapObj obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }