示例#1
0
 private void item_TagsEdited(MapZoneDrawing sender)
 {
     if (MapZoneChanged != null)
     {
         FrostbiteConnection.RaiseEvent(MapZoneChanged.GetInvocationList(), sender);
     }
 }
示例#2
0
        protected override void SetItem(int index, MapZoneDrawing item)
        {
            if (MapZoneChanged != null)
            {
                FrostbiteConnection.RaiseEvent(MapZoneChanged.GetInvocationList(), item);
            }

            base.SetItem(index, item);
            item.TagsEdited += new MapZoneDrawing.TagsEditedHandler(item_TagsEdited);
        }
示例#3
0
        public void ModifyMapZonePoints(string strUid, Point3D[] points)
        {
            if (Contains(strUid) == true)
            {
                // this[strUid].LevelFileName = mapFileName;
                this[strUid].ZonePolygon = points;

                if (MapZoneChanged != null)
                {
                    FrostbiteConnection.RaiseEvent(MapZoneChanged.GetInvocationList(), this[strUid]);
                }
            }
        }