当前位置: 首页>>代码示例>>C#>>正文


C# Marker类代码示例

本文整理汇总了C#中Marker的典型用法代码示例。如果您正苦于以下问题:C# Marker类的具体用法?C# Marker怎么用?C# Marker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Marker类属于命名空间,在下文中一共展示了Marker类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetMarkerValue

		internal void SetMarkerValue(Marker marker, int val)
		{
			markers[marker] = val;

			if (OnSetMarkerValue != null)
				OnSetMarkerValue(this, marker, val);
		}
开发者ID:AciesNN,项目名称:cyc,代码行数:7,代码来源:PlayerInfoCM.cs

示例2: MarkerSet

        public MarkerSet(MpqFile file)
        {
            var stream = file.Open();
            Header = new Header(stream);
            SNO = stream.ReadInt32();
            unknown0 = stream.ReadInt32();
            unknown1 = stream.ReadInt32();
            serMarkers = new SerializeData(stream);
            long x = stream.Position;
            Markers = new Marker[serMarkers.Size / 208];
            stream.Position = serMarkers.Offset + 16;
            for (int i = 0; i < serMarkers.Size / 208; i++)
            {
                Markers[i] = new Marker(stream);
            }
            stream.Position = x;
            stream.Position += (15 * 4); // pad 15
            serNoSpawns = new SerializeData(stream);
            stream.Position += (14 * 4);
            aabb = new AABB_(stream);
            i0 = stream.ReadInt32();
            byte[] buf = new byte[256];
            stream.Read(buf, 0, 256); filename = Encoding.ASCII.GetString(buf);
            nLabel = stream.ReadInt32();
            nSpecialIndexCount = stream.ReadInt32();
            serSpecialIndexList = new SerializeData(stream);

                stream.Close();
        }
开发者ID:nerdymerky,项目名称:mooege,代码行数:29,代码来源:MarkerSet.cs

示例3: EnumerateMarkers

			public void EnumerateMarkers()
			{
				_markers = new List<Marker>();

				// enumerate markers
				var cueChunk = (CkCue)GetChunk<CkCue>();
				if (cueChunk == null)
					return;
				foreach (CuePoint cp in cueChunk.CuePoints)
				{
					var mk = new Marker(cp);
					_markers.Add(mk);
					var listChunk = (CkList)GetChunk<CkList>();
					if (listChunk == null)
						continue;
					foreach (ListChunk lc in listChunk.Chunks)
					{
						if (lc.GetType() == typeof(LiCkInfoLabl))
						{
							var me = lc as LiCkInfoLabl;
							if (me != null && me.CuePointID == cp.ID)
							{
								mk.LablChunk = (LiCkInfoLabl)lc;
								break;
							}
						}
					}
				}
			}
开发者ID:teetow,项目名称:teevegas,代码行数:29,代码来源:WaveFile.cs

示例4: First_Marker_Add_From_gvDrawOnMap

    protected void First_Marker_Add_From_gvDrawOnMap()
    {
        int value = 0;
        Marker mark = new Marker();

        for (int i = 0; i < gvDrawOnMap.Rows.Count; i++)
        {
            if (value != Convert.ToInt16(gvDrawOnMap.Rows[i].Cells[1].Text))
            {
                value = Convert.ToInt16(gvDrawOnMap.Rows[i].Cells[1].Text);
                mark = new Marker();
                mark.Position.Latitude = Convert.ToDouble(gvDrawOnMap.Rows[i].Cells[2].Text);
                mark.Position.Longitude = Convert.ToDouble(gvDrawOnMap.Rows[i].Cells[3].Text);

                string TitleText;
                if (Convert.ToInt16(gvDrawOnMap.Rows[i].Cells[7].Text) < 10)
                    TitleText = "R0" + gvDrawOnMap.Rows[i].Cells[7].Text;
                else
                    TitleText = "R" + gvDrawOnMap.Rows[i].Cells[7].Text;
                mark.Title = TitleText;

                /****************   START VECHILE EQUIPMENT     **************************/
                string InfoText;
                if (Convert.ToInt16(gvDrawOnMap.Rows[i].Cells[7].Text) < 10)
                    InfoText = "<p style='text-align:left'><b>ID vozila: R0" + gvDrawOnMap.Rows[i].Cells[7].Text + "</b></p>" + "<p style='text-align:left'>Oprema vozila:<br>";
                else
                    InfoText = "<p style='text-align:left'><b>ID vozila: R" + gvDrawOnMap.Rows[i].Cells[7].Text + "</b></p>" + "<p style='text-align:left'>Oprema vozila:<br>";

                if (((CheckBox)gvDrawOnMap.Rows[i].Cells[8].Controls[0]).Checked)
                    InfoText = InfoText + "- AED (defibrillator)<br>";
                if (((CheckBox)gvDrawOnMap.Rows[i].Cells[9].Controls[0]).Checked)
                    InfoText = InfoText + "- Ročna svetilka<br>";
                if (((CheckBox)gvDrawOnMap.Rows[i].Cells[10].Controls[0]).Checked)
                    InfoText = InfoText + "- Triopan<br>";
                if (((CheckBox)gvDrawOnMap.Rows[i].Cells[11].Controls[0]).Checked)
                    InfoText = InfoText + "-  Svetlobni lopar<br></p>";
                /****************   END VECHILE EQUIPMENT     **************************/

                mark.Info = InfoText;

                if (((CheckBox)gvDrawOnMap.Rows[i].Cells[6].Controls[0]).Checked)
                {
                    mark.Icon = "./Images/alarm.gif";
                }
                else

                    mark.Icon = "./Images/" + gvDrawOnMap.Rows[i].Cells[7].Text + ".png";
            }

            if (i == (gvDrawOnMap.Rows.Count - 1))
                value = 0;
            else
            {
                if (Convert.ToInt16(gvDrawOnMap.Rows[i].Cells[1].Text) != Convert.ToInt16(gvDrawOnMap.Rows[i + 1].Cells[1].Text))
                    value = 0;
            }

            GoogleMap1.Markers.Add(mark);
        }
    }
开发者ID:podli,项目名称:Tetra,代码行数:60,代码来源:AllView.aspx.cs

示例5: GetEventsButton_Click

    protected void GetEventsButton_Click(object sender, EventArgs e)
    {
        string k = KeywordsTB.Text;
        string l = LocationTB.Text;
        string c = CategoriesList.SelectedValue;
        string w = WithinTB.Text;
        string d = DateTB.Text;
        string json = meservice.GetEvents(k, l, c, w, d, MusicEventkey);
        GoogleMap1.MapInfo.Zoom = 8;
        GoogleMap1.MapInfo.MapType = MapTypes.ROADMAP;
        Events events = JsonConvert.DeserializeObject<Events>(json);
        var enumerator = events.events.GetEnumerator();
        Marker m = null;
        while (enumerator.MoveNext())
        {
            var a = enumerator.Current;
            m = new Marker();
            m.Latitude = Convert.ToDouble(a.eventLatitude);
            m.Longtitude = Convert.ToDouble(a.eventLongitude);
            m.Tooltip = a.eventTitle;
           // m.ImgSrc = a.eventImageUrl;
            m.InfoWindowOnClick = true;
            m.InfoWindowContentHtml = "<table class=" + "auto-style1" + ">" + "<tr><td>Title</td><td>" + a.eventTitle + "</td></tr> <tr><td>Venue</td><td>" + a.venueName + "</td></tr><tr><td>Address</td><td>" + a.venueAddress + "</td></tr><tr><td>City</td><td>" + a.eventCityName + "</td></tr><tr><td>State;</td><td>" + a.eventState + "</td></tr><tr><td>Event Url</td><td>" + "<a href=" + a.eventUrl + ">Go to Url</a>" + "</td></tr><tr><td>Venue Url</td><td>" + "<a href=" + a.venueUrl + ">Go to Url</a>" + "</td></tr><tr><td> Event Image</td><td><img src=" + a.eventImageUrl + " alt=" + " width=" + "150" + " height=" + "150" + "></td></tr></table>";

            m.MarkerId = Guid.NewGuid().ToString();

            GoogleMap1.Markers.Add(m);
        }
         //   GridView1.DataSource = events.events;
          //  GridView1.DataBind();
    }
开发者ID:ksm5629,项目名称:Applications,代码行数:31,代码来源:index.aspx.cs

示例6: addMarkers

 public virtual void addMarkers(Marker[] objectMarkers, Marker[] imageMarkers)
 {
   int length1 = Math.min(objectMarkers.Length, imageMarkers.Length);
   Marker[] markerArray1 = new Marker[length1];
   Marker[] markerArray2 = new Marker[length1];
   int index1 = 0;
   Marker[] markerArray3 = objectMarkers;
   int length2 = markerArray3.Length;
   for (int index2 = 0; index2 < length2; ++index2)
   {
     Marker marker1 = markerArray3[index2];
     Marker[] markerArray4 = imageMarkers;
     int length3 = markerArray4.Length;
     for (int index3 = 0; index3 < length3; ++index3)
     {
       Marker marker2 = markerArray4[index3];
       if (marker1.id == marker2.id)
       {
         markerArray1[index1] = marker1;
         markerArray2[index1] = marker2;
         ++index1;
         break;
       }
     }
   }
   if (index1 < length1)
   {
     markerArray1 = (Marker[]) Arrays.copyOf((object[]) markerArray1, index1);
     markerArray2 = (Marker[]) Arrays.copyOf((object[]) markerArray2, index1);
   }
   this.allObjectMarkers.add((object) markerArray1);
   this.allImageMarkers.add((object) markerArray2);
   opencv_core.cvCopy(this.prevWarp, this.lastWarp);
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:34,代码来源:GeometricCalibrator.cs

示例7: Create

        public void Create(Marker marker)
        {
            using (var db = new Pb.Dal.EfEntities())
            {
                db.Markers.Add(new Pb.Dal.Marker()
                {
                    Created = DateTime.Now,
                    Id = marker.Id,
                    ImageUrl = marker.ImageUrl,
                    Deleted = false,
                    Manufacturer = marker.Manufacturer,
                    Name = marker.Name,
                    PlayerId = marker.PlayerId
                });

                try
                {
                    db.SaveChanges();
                }
                catch (DbEntityValidationException e)
                {
                    Console.WriteLine(e);
                }
            }
        }
开发者ID:loonison101,项目名称:PB,代码行数:25,代码来源:MarkerRepository.cs

示例8: ChangeMarkerValue

		internal void ChangeMarkerValue(Marker marker, int val)
		{
			markers[marker] += val;

			if (OnChangeMarkerValue != null)
				OnChangeMarkerValue(this, marker, val);
		}
开发者ID:AciesNN,项目名称:cyc,代码行数:7,代码来源:PlayerInfoCM.cs

示例9: Generate_Map

    public void Generate_Map()
    {
        if (MRT_Station != "")
        {
            Marker _marker_mrt = new Marker();
            _marker_mrt.Address = MRT_Station + " Station";
            _marker_mrt.Animation = MarkerAnimation.Drop;
            _marker_mrt.Title = "Nearest MRT: " + MRT_Station;
            _marker_mrt.Info = _marker_mrt.Address;

            MarkerImage _marker_image = new MarkerImage();
            _marker_image.Url = "../Images/train.png";
            _marker_mrt.Icon = _marker_image;
            google_map_default.Markers.Add(_marker_mrt);

        }
        if (Postal_Code != "")
        {
            Marker _marker = new Marker();
            _marker.Address = Postal_Code + " Singapore";
            _marker.Animation = MarkerAnimation.Drop;
            _marker.Title = "Postal Code: " + Postal_Code;
            _marker.Info = Postal_Code;
            google_map_default.Markers.Add(_marker);

        }
        google_map_default.DefaultAddress = (Postal_Code != "") ? Postal_Code + " Singapore" : MRT_Station + " MRT Singapore";
    }
开发者ID:heinhtetzaw,项目名称:Cake,代码行数:28,代码来源:GoogleMap.ascx.cs

示例10: MarkedPlane

 public MarkedPlane(int width, int height, Marker[] markers, bool initPrewarp, object foregroundColor, object backgroundColor, double superScale)
 {
   // ISSUE: type reference
   ByteCodeHelper.DynamicCast(foregroundColor, __typeref (MarkedPlane), "com.googlecode.javacv.cpp.opencv_core$CvScalar");
   // ISSUE: type reference
   ByteCodeHelper.DynamicCast(backgroundColor, __typeref (MarkedPlane), "com.googlecode.javacv.cpp.opencv_core$CvScalar");
   int num1 = initPrewarp ? 1 : 0;
   base.\u002Ector();
   MarkedPlane markedPlane1 = this;
   this.markers = (Marker[]) null;
   this.planeImage = (object) null;
   this.superPlaneImage = (object) null;
   this.markers = markers;
   this.foregroundColor = foregroundColor;
   this.backgroundColor = backgroundColor;
   this.prewarp = (object) null;
   if (num1 != 0)
   {
     MarkedPlane markedPlane2 = this;
     throw new NoClassDefFoundError("com.googlecode.javacv.cpp.opencv_core$CvMat");
   }
   else if (width > 0 && height > 0)
   {
     MarkedPlane markedPlane2 = this;
     throw new NoClassDefFoundError("com.googlecode.javacv.cpp.opencv_core$IplImage");
   }
   else
   {
     MarkedPlane markedPlane2 = this;
     int num2 = markers.Length * 4;
     throw new NoClassDefFoundError("com.googlecode.javacv.cpp.opencv_core$CvMat");
   }
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:33,代码来源:MarkedPlane.cs

示例11: AddMarkerToPosition

        public static async void AddMarkerToPosition(this MapView map, MapPos position)
        {
            await ThreadPool.RunAsync(delegate
            {
                // Initialize a local vector data source
                Projection projection = map.Options.BaseProjection;
                LocalVectorDataSource datasource = new LocalVectorDataSource(projection);

                // Initialize a vector layer with the previous data source
                VectorLayer layer = new VectorLayer(datasource);

                // Add layer to map
                map.Layers.Add(layer);

                MarkerStyleBuilder builder = new MarkerStyleBuilder();
                builder.Size = 15;
                builder.Color = new Carto.Graphics.Color(0, 255, 0, 255);
                
                MarkerStyle style = builder.BuildStyle();

                // Create marker and add it to the source
                Marker marker = new Marker(position, style);
                datasource.Add(marker);
            });
        }
开发者ID:CartoDB,项目名称:mobile-dotnet-samples,代码行数:25,代码来源:MapExtensions.cs

示例12: OnMapClicked

 public override void OnMapClicked(MapClickInfo mapClickInfo)
 {
     // Add default marker to the click location
     var styleBuilder = new MarkerStyleBuilder ();
     styleBuilder.Size = 10;
     var marker = new Marker (mapClickInfo.ClickPos, styleBuilder.BuildStyle());
     _dataSource.Add (marker);
 }
开发者ID:CartoDB,项目名称:mobile-dotnet-samples,代码行数:8,代码来源:MapListener.cs

示例13: AddMarker

			public Marker AddMarker(UInt32 SamplePos)
			{
				CkCue cueChunk = (CkCue)GetChunk<CkCue>() ?? (CkCue)AddChunk(CkType.cue);
				CuePoint cp = cueChunk.AddCuePoint(SamplePos);
				var mk = new Marker(cp);
				EnumerateMarkers();
				return mk;
			}
开发者ID:teetow,项目名称:teevegas,代码行数:8,代码来源:WaveFile.cs

示例14: setCurrentMarker

    public void setCurrentMarker(Marker markerToPlace)
    {
        if (markerToPlace == Marker.PlayerStart) {

            currentMarker = markerList[0];

        }
    }
开发者ID:Toxoid-49b,项目名称:DarkX,代码行数:8,代码来源:MarkerPlacer.cs

示例15: Perform

        private static BoundExpression[] Perform(BoundBody node, BoundTypeManager.DefiniteAssignmentMarker.Branch parentBranch)
        {
            var marker = new Marker(node.TypeManager, parentBranch);

            marker.Visit(node);

            return marker.ResultExpressions;
        }
开发者ID:pvginkel,项目名称:Jint2,代码行数:8,代码来源:DefiniteAssignmentPhase.cs


注:本文中的Marker类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。