Exemple #1
0
        public void FingDrawEllipse()
        {
            long result;
            Int32 result2;
            Draw callback = new Draw();
               // callback.parent = this;

            fvw.Map MyMap = new fvw.Map();
            result = MyMap.SetDispatchPtr(this);

            System.Diagnostics.Debug.WriteLine("mothafing " + result);

            IconHandle = -1;
            ToolbarHandle = -1;
            LineHandle = -1;
            LayerHandle = -1;

            MyLayer = new fvw.LayerClass();

                System.Diagnostics.Debug.WriteLine("whatcha think? " + result);

            result2 = MyLayer.RegisterWithMapServer("Sample Layer", 0, this);
            System.Diagnostics.Debug.WriteLine("whatcha think? " + result2);
        }
        // create a new layer, return the handle, and add info to list
        // Creates a new layer
        public int CreateLayer(string _cotID)
        {
            int result = 50; // result is used for debugging... i used 50 so that i could tell that -1, 0, or 1 was the output... nothing special about 50
            FP_point = new LayerClass();

            result = FP_point.RegisterWithMapServer("falconpoint", 0, _FPmainAddr); // result is used for debugging
            currentLayerHandle = FP_point.CreateLayer("FP layer");

            System.Diagnostics.Debug.WriteLine("registered with map server result = " + currentLayerHandle); // used for debugging... shows registration result in output window

            temp_layerList.Layer = currentLayerHandle; // temp list item
            temp_layerList.cotID = _cotID; // temp list item

            FP_layerList.Add(temp_layerList); // add temp items to real list

            temp_layerList = new LayerList(); // create a new temp list... otherwise we would keep writing over the old list

            return currentLayerHandle; // return the newly created layer handle ... should be something like 102, 103..
        }