• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Marker类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: MarkerGridRow

 public MarkerGridRow(Marker marker)
 {
     Enabled = marker.Settings.Enabled;
     Color = marker.Settings.Color;
     ExtraColor = marker.Settings.ExtraColor;
     View = marker.Settings.View;
     Tribe = marker.Tribe;
     Player = marker.Player;
 }
开发者ID:kindam,项目名称:TWTactics,代码行数:9,代码来源:MarkerGridRow.cs


示例17: StreamBeginMarkerImpl

 /// <inheritdoc />
 protected override void StreamBeginMarkerImpl(string streamName, Marker marker)
 {
     messageSink.Publish(new TestStepLogStreamBeginMarkerBlockMessage()
     {
         StepId = stepId,
         StreamName = streamName,
         Marker = marker
     });
 }
开发者ID:dougrathbone,项目名称:mbunit-v3,代码行数:10,代码来源:ObservableTestLogWriter.cs


示例18: button_Click

 protected void button_Click(object sender, EventArgs e)
 {
     Marker mark = new Marker();
     mark.Position.Latitude = 46.0618122600;
     mark.Position.Longitude = 14.5911734400;
     mark.Title = "NORO ;)";
     mark.Info = "COULD IT BE ;)";
     GoogleMap1.Markers.Add(mark);
 }
开发者ID:podli,项目名称:Tetra,代码行数:9,代码来源:About.aspx.cs


示例19: ShapeDrawer

        public ShapeDrawer(bool isEllipse, Marker colors)
        {
            _filler = isEllipse ? EllipseFiller : RectangleFiller;

            _colorBrush = new SolidBrush(colors.Settings.Color);
            if (colors.Settings.ExtraColor != Color.Transparent)
            {
                _extraColorBrush = new SolidBrush(colors.Settings.ExtraColor);
            }
        }
开发者ID:kindam,项目名称:TWTactics,代码行数:10,代码来源:ShapeDrawer.cs


示例20: ParseEngine

 /// <summary>
 /// Creates a new instance of the parse engine.
 /// </summary>
 /// <param name="query">The query context to consider.</param>
 /// <param name="context">The parser context to use.</param>
 public ParseEngine(QueryContext query, ParseContext context)
 {
     _context = context;
     _query = query;
     _characters = query.Input.ToCharArray();
     _errors = new List<YAMPParseError>();
     _statements = new List<Statement>();
     _markers = Marker.None;
     _currentLine = 1;
     _currentColumn = 1;
 }
开发者ID:FlorianRappl,项目名称:YAMP,代码行数:16,代码来源:ParseEngine.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# MarkerType类代码示例发布时间:2022-05-24
下一篇:
C# MarkdownSharp.Markdown类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap