상속: ICategory
예제 #1
0
파일: PlayerInfoCM.cs 프로젝트: AciesNN/cyc
		internal void ChangeMarkerValue(Marker marker, int val)
		{
			markers[marker] += val;

			if (OnChangeMarkerValue != null)
				OnChangeMarkerValue(this, marker, val);
		}
예제 #2
0
파일: AllView.aspx.cs 프로젝트: podli/Tetra
    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);
        }
    }
예제 #3
0
파일: PlayerInfoCM.cs 프로젝트: AciesNN/cyc
		internal void SetMarkerValue(Marker marker, int val)
		{
			markers[marker] = val;

			if (OnSetMarkerValue != null)
				OnSetMarkerValue(this, marker, val);
		}
예제 #4
0
파일: WaveFile.cs 프로젝트: teetow/teevegas
			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;
							}
						}
					}
				}
			}
예제 #5
0
    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";
    }
예제 #6
0
        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();
        }
 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);
 }
예제 #8
0
        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);
                }
            }
        }
예제 #9
0
 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");
   }
 }
예제 #10
0
        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);
            });
        }
예제 #11
0
    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();
    }
예제 #12
0
    public void setCurrentMarker(Marker markerToPlace)
    {
        if (markerToPlace == Marker.PlayerStart) {

            currentMarker = markerList[0];

        }
    }
예제 #13
0
파일: WaveFile.cs 프로젝트: teetow/teevegas
			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;
			}
예제 #14
0
        private static BoundExpression[] Perform(BoundBody node, BoundTypeManager.DefiniteAssignmentMarker.Branch parentBranch)
        {
            var marker = new Marker(node.TypeManager, parentBranch);

            marker.Visit(node);

            return marker.ResultExpressions;
        }
예제 #15
0
 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);
 }
예제 #16
0
파일: About.aspx.cs 프로젝트: podli/Tetra
 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);
 }
예제 #17
0
 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;
 }
 /// <inheritdoc />
 protected override void StreamBeginMarkerImpl(string streamName, Marker marker)
 {
     messageSink.Publish(new TestStepLogStreamBeginMarkerBlockMessage()
     {
         StepId = stepId,
         StreamName = streamName,
         Marker = marker
     });
 }
예제 #19
0
        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);
            }
        }
예제 #20
0
 /// <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;
 }
예제 #21
0
        public void AddMarker(string name, int? total)
        {
            this.marker = new Marker { Name = name, Total = total, TimeStamp = DateTime.Now };

            Console.Clear();
            this.Write();

            if (this.chainedLog != null)
            {
                this.chainedLog.AddMarker(name, total);
            }
        }
예제 #22
0
 protected Marker FindMarker(ref long position, Marker marker)
 {
     ByteVector pattern = new ByteVector(MarkerStart) {
         (byte) marker
     };
     position = base.Find(pattern, position);
     if (position < 0L)
     {
         throw new CorruptFileException("Marker not found");
     }
     return this.GetMarker(position);
 }
        private void wpfMap1_MapClick(object sender, MapClickWpfMapEventArgs e)
        {
            SimpleMarkerOverlay markerOverlay = (SimpleMarkerOverlay)wpfMap1.Overlays["MarkerOverlay"];
            Marker marker = new Marker(e.WorldLocation);
            marker.ImageSource = new BitmapImage(new Uri("/Resources/AQUA.png", UriKind.RelativeOrAbsolute));
            marker.Width = 20;
            marker.Height = 34;
            marker.YOffset = -17;

            markerOverlay.Markers.Add(marker);
            markerOverlay.Refresh();
        }
예제 #24
0
파일: ImportLog.cs 프로젝트: Mathus/dipu
        public void AddMarker(string name, int? total)
        {
            if (!this.started.HasValue)
            {
                this.started = DateTime.Now;
            }

            var marker = new Marker { Name = name, Total = total, TimeStamp = DateTime.Now };
            this.markers.Add(marker);

            this.finished = DateTime.Now;
        }
예제 #25
0
        public void Add(string name)
        {
            var marker = new Marker
            {
                Name = name,
                ThreadId = Thread.CurrentThread.ManagedThreadId,
                Time = DateTime.Now.Ticks,
            };

            lock (_markers)
            {
                _markers.Add(marker);
            }
        }
예제 #26
0
        protected override DrawerBase CreateVillageDrawerCore(Village.BonusType villageBonus, BackgroundDrawerData data, Marker marker)
        {
            switch (data.ShapeDrawer)
            {
                case "RectangleDrawer":
                    return new ShapeDrawer(false, marker);

                case "EllipseDrawer":
                    return new ShapeDrawer(true, marker);

                default:
                    return null;
            }
        }
예제 #27
0
 public static string MarkerToString(Marker marker)
 {
     switch (marker)
     {
         case Marker.None:
             return "";
         case Marker.Square:
             return "#SQ";
         case Marker.Circle:
             return "#CR";
         case Marker.Triangle:
             return "#TR";
         default:
             throw new NotImplementedException();
     }
 }
예제 #28
0
        public void Update(Marker marker, string externalUserId)
        {
            var oldMarker = _markerRepository.ById(marker.Id);

            _markerRepository.Update(marker);

            //_bus.Publish(new UpdateMarkerCommand()
            //{
            //    Id = marker.Id,
            //    ImageUrl = marker.ImageUrl,
            //    Manufacturer = marker.Manufacturer,
            //    Name = marker.Name,

            //});

            Task.Run(() => HandleMarkerUpdated(marker, oldMarker, externalUserId));
        }
예제 #29
0
파일: About.aspx.cs 프로젝트: podli/Tetra
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GoogleMap1.EnterpriseKey = "AIzaSyAXe-NlSf2-39t-YM8iqsXoKrZwcHqTe70";
            GoogleMap1.Latitude = 46.06160082;
            GoogleMap1.Longitude = 14.52628776;
            GoogleMap1.Zoom = 14;
            GoogleMap1.MapType = MapType.Roadmap;
        }

        Marker mark = new Marker();
        mark.Position.Latitude = 46.0668122600;
        mark.Position.Longitude = 14.5511734400;
        mark.Title = "IT WORKS ;)";
        mark.Info = "IT ALSO WORKS ;)";
        GoogleMap1.Markers.Add(mark);
    }
    // Destroys the marker associated with the given MarkerBehaviour
    // at native code.
    public override bool DestroyMarker(Marker marker, bool destroyGameObject)
    {
        if (QCARWrapper.Instance.MarkerTrackerDestroyMarker(marker.ID) == 0)
        {
            Debug.LogError("Could not destroy marker with id " + marker.MarkerID + ".");
            return false;
        }

        mMarkerDict.Remove(marker.ID);

        if (destroyGameObject)
        {
            StateManagerImpl stateManager = (StateManagerImpl)TrackerManager.Instance.GetStateManager();
            stateManager.DestroyTrackableBehavioursForTrackable(marker);
        }

        return true;
    }
 public Android.Views.View GetInfoContents(Marker marker)
 {
     return(null);
 }
        //--------------------------------------------------------------------------------------------------

        void _OnActionFinished(ToolAction toolAction)
        {
            if (toolAction == _PointAction)
            {
                switch (_PointsCompleted)
                {
                case 0:
                    _Points.Add(0, _PointAction.Point);
                    _MergePointIndices[0] = _PointAction.MergeCandidateIndex;
                    _PointsCompleted++;

                    _Marker[0] = new Marker(_SketchEditorTool.WorkspaceController, Marker.Styles.Bitmap | Marker.Styles.Topmost, Marker.BallImage);
                    _Marker[0].Set(_PointAction.Point, _SketchEditorTool.Sketch.Plane);

                    _SketchEditorTool.StatusText = "Select first rim point of the ellipse.";

                    _PointAction.Reset();
                    break;

                case 1:
                    if (_Points[0].Distance(_PointAction.Point) < 0.001)
                    {
                        // Min distance not met
                        _PointAction.Reset();
                        return;
                    }

                    if (_HintCircle != null)
                    {
                        _HintCircle.Remove();
                        _HintCircle = null;
                    }
                    if (_HintLine != null)
                    {
                        _HintLine.Remove();
                        _HintLine = null;
                    }

                    _Points.Add(1, _PointAction.Point);
                    _MergePointIndices[1] = _PointAction.MergeCandidateIndex;
                    _PointsCompleted++;

                    _Marker[1] = new Marker(_SketchEditorTool.WorkspaceController, Marker.Styles.Bitmap | Marker.Styles.Topmost, Marker.BallImage);
                    _Marker[1].Set(_PointAction.Point, _SketchEditorTool.Sketch.Plane);

                    _Points.Add(2, _PointAction.Point);
                    _Segment = new SketchSegmentEllipse(0, 1, 2);

                    _Element            = new SketchEditorSegmentElement(_SketchEditorTool, -1, _Segment, _SketchEditorTool.Transform, _SketchEditorTool.Sketch.Plane);
                    _Element.IsCreating = true;
                    _Element.OnPointsChanged(_Points, null);

                    _SketchEditorTool.StatusText = "Select second rim point of the ellipse.";

                    _PointAction.Reset();
                    break;

                case 2:
                    if (_Points[0].Distance(_PointAction.Point) < 0.001 ||
                        _Points[1].Distance(_PointAction.Point) < 0.001)
                    {
                        // Min distance not met
                        _PointAction.Reset();
                        return;
                    }

                    _Points[2]            = _PointAction.Point;
                    _MergePointIndices[2] = _PointAction.MergeCandidateIndex;

                    _PointAction.Stop();

                    _SketchEditorTool.FinishSegmentCreation(_Points, _MergePointIndices, new SketchSegment[] { _Segment }, null);
                    break;
                }
            }
        }
예제 #33
0
 /**
  * counts how many markers in the node chain that is of a specific marker.
  *
  * used to determine if a player is one move away from winning.
  */
 private int CountMarker(Board board, Marker marker, Node <(int, int)> node)
예제 #34
0
 public View GetInfoContents(Marker marker)
 {
     return(null);
 }
예제 #35
0
 /// <summary>
 /// Destroys the Marker at native code.
 /// </summary>
 public abstract bool DestroyMarker(Marker marker, bool destroyGameObject);
예제 #36
0
 public void MarkerTypeErrorTest()
 {
     Marker marker = new Marker("AreaEffectClou", "test", new int[] { 1, 2, 3 }, new string[] { });
 }
예제 #37
0
파일: LogContext.cs 프로젝트: cardinals/SSO
 internal void Debug(Marker marker, string traceID, string message)
 {
     Debug(marker, traceID, message, LogConstant.DEFAULTVALUE, LogConstant.DEFAULTVALUE);
 }
예제 #38
0
파일: LogContext.cs 프로젝트: cardinals/SSO
 internal void Debug(Marker marker, string traceID, string message, string filter1, string filter2)
 {
     Log(Priority.DEBUG, marker, traceID, message, LogConstant.DEFAULTVALUE, filter1, filter2);
 }
예제 #39
0
파일: LogContext.cs 프로젝트: cardinals/SSO
 internal void Error(Marker marker, string traceID, string message, string stackTrace)
 {
     Error(marker, traceID, message, stackTrace, LogConstant.DEFAULTVALUE, LogConstant.DEFAULTVALUE);
 }
예제 #40
0
파일: LogContext.cs 프로젝트: cardinals/SSO
 internal void Error(Marker marker, string traceID, string message, Exception ex)
 {
     Error(marker, traceID, message, ex, LogConstant.DEFAULTVALUE, LogConstant.DEFAULTVALUE);
 }
예제 #41
0
 public MarkerWrapper(Marker marker)
 {
     _marker = marker;
 }
예제 #42
0
 /// <summary>
 /// Call when after marker create.
 /// You can override your custom renderer for customize marker.
 /// </summary>
 /// <param name="outerItem">the pin.</param>
 /// <param name="innerItem">thr marker.</param>
 protected virtual void OnMarkerCreated(Pin outerItem, Marker innerItem)
 {
 }
예제 #43
0
파일: LogContext.cs 프로젝트: cardinals/SSO
 internal void Error(Marker marker, string traceID, string message, string stackTrace, string filter1, string filter2)
 {
     Log(Priority.ERROR, marker, traceID, message, stackTrace, filter1, filter2);
 }
예제 #44
0
파일: LogContext.cs 프로젝트: cardinals/SSO
 internal static void Log(Priority priority, Marker marker, string traceID, string message, string stackTrace, string filter1, string filter2, string contextID = null)
 {
     TransportFactory.Source.Log(priority, marker, message, stackTrace, filter1, filter2, traceID);
 }
예제 #45
0
 public void MarkerCoorErrorTest()
 {
     Marker marker = new Marker("AreaEffectCloud", "test", new int[] { 1, 2 }, new string[] { });
 }
예제 #46
0
파일: LogContext.cs 프로젝트: cardinals/SSO
 internal void Log(Priority priority, Marker marker, string traceID, string message, string stackTrace, string filter1, string filter2)
 {
     Log(priority, marker, traceID, message, stackTrace, filter1, filter2, string.Empty);
 }
예제 #47
0
 public void AddMarkerToScene(Marker marker)
 {
     allMarkers.Add(marker);
 }
예제 #48
0
파일: LogContext.cs 프로젝트: cardinals/SSO
 internal void Fatal(Marker marker, string traceID, string message, string stackTrace, string filter1, string filter2)
 {
     Log(Priority.FATAL, marker, traceID, message, stackTrace, filter1, filter2);
 }
예제 #49
0
        public async static Task SpawnCompanies()
        {
            using (MySqlConnection connection = new MySqlConnection(Data.DatabaseHandler.connectionHandle))
            {
                await connection.OpenAsync().ConfigureAwait(false);

                MySqlCommand command = connection.CreateCommand();
                command.CommandText = "SELECT * FROM companies";

                DbDataReader reader = await command.ExecuteReaderAsync().ConfigureAwait(false);

                if (reader.HasRows)
                {
                    while (await reader.ReadAsync().ConfigureAwait(false))
                    {
                        int    id         = reader.GetInt32(reader.GetOrdinal("id"));
                        int    userid     = reader.GetInt32(reader.GetOrdinal("owner"));
                        int    type       = reader.GetInt32(reader.GetOrdinal("type"));
                        string name       = reader.GetString(reader.GetOrdinal("name"));
                        int    price      = reader.GetInt32(reader.GetOrdinal("price"));
                        string area       = reader.GetString(reader.GetOrdinal("area"));
                        int    number     = reader.GetInt32(reader.GetOrdinal("number"));
                        double safeBox    = reader.GetDouble(reader.GetOrdinal("safeBox"));
                        int    percentage = reader.GetInt32(reader.GetOrdinal("percentage"));
                        int    subsidy    = reader.GetInt32(reader.GetOrdinal("subsidy"));

                        double x = reader.GetDouble(reader.GetOrdinal("x"));
                        double y = reader.GetDouble(reader.GetOrdinal("y"));
                        double z = reader.GetDouble(reader.GetOrdinal("z"));

                        Vector3 position = new Vector3(x, y, z);
                        string  nombre;

                        if (name == "NO")
                        {
                            nombre = "Compañía en venta";
                        }
                        else
                        {
                            nombre = name;
                        }

                        int workers = GetWorkersCompany(id);

                        NAPI.Task.Run(async() =>
                        {
                            // Exterior entities

                            ColShape company = NAPI.ColShape.CreateCylinderColShape(position.Subtract(new Vector3(0, 0, 1)), 2, 2);
                            TextLabel label  = NAPI.TextLabel.CreateTextLabel($"{nombre}~n~Pulsa ~y~F5 ~w~para interactuar~n~~p~{area}, {number}", position, 5, 1, 0, new Color(255, 255, 255));
                            Marker marker    = NAPI.Marker.CreateMarker(0, position.Subtract(new Vector3(0, 0, 0.1)), new Vector3(), new Vector3(), 1, new Color(251, 244, 1));
                            Blip blip        = NAPI.Blip.CreateBlip(position);
                            blip.Color       = 3;
                            blip.Name        = nombre;

                            switch (type)
                            {
                            case 1:
                                blip.Sprite = 198;
                                break;

                            case 2:
                                blip.Sprite = 477;
                                break;

                            case 3:
                                blip.Sprite = 72;
                                break;

                            case 4:
                                blip.Sprite = 528;
                                break;

                            case 5:
                                blip.Sprite = 135;
                                break;
                            }

                            // Interior entities
                            TextLabel label_interior = NAPI.TextLabel.CreateTextLabel("~w~Pulsa ~y~F5 ~w~para salir", Interior.interior, 3, 1, 0, new Color(255, 255, 255));
                            label_interior.Dimension = (uint)id;
                            ColShape shape_interior  = NAPI.ColShape.CreateCylinderColShape(Interior.interior.Subtract(new Vector3(0, 0, 1)), 2, 2, (uint)id);

                            ColShape shape_duty  = NAPI.ColShape.CreateCylinderColShape(Interior.duty.Subtract(new Vector3(0, 0, 1)), 2, 2, (uint)id);
                            TextLabel label_duty = NAPI.TextLabel.CreateTextLabel("~w~Pulsa ~y~F6 ~w~para ponerte en servicio", Interior.duty, 3, 1, 0, new Color(255, 255, 255));
                            Marker marker_duty   = NAPI.Marker.CreateMarker(1, Interior.duty.Subtract(new Vector3(0, 0, 1)), new Vector3(), new Vector3(), 1, new Color(251, 244, 1));

                            ColShape shape_contract  = NAPI.ColShape.CreateCylinderColShape(Interior.contract.Subtract(new Vector3(0, 0, 1)), 2, 2, (uint)id);
                            TextLabel label_contract = NAPI.TextLabel.CreateTextLabel("~w~Pulsa ~y~F6 ~w~para firmar el contrato de empleo", Interior.contract, 3, 1, 0, new Color(255, 255, 255));
                            Marker marker_contract   = NAPI.Marker.CreateMarker(1, Interior.contract.Subtract(new Vector3(0, 0, 1)), new Vector3(), new Vector3(), 1, new Color(251, 244, 1));


                            Data.Entities.Company dcompany = new Data.Entities.Company
                            {
                                id         = id,
                                owner      = userid,
                                type       = type,
                                name       = name,
                                price      = price,
                                blip       = blip,
                                label      = label,
                                marker     = marker,
                                area       = area,
                                number     = number,
                                safeBox    = safeBox,
                                workers    = workers,
                                percentage = percentage,
                                subsidy    = subsidy,
                                interior   = shape_interior,
                                shape      = company,
                                contract   = shape_contract,
                                duty       = shape_duty
                            };

                            //company.SetExternalData<Data.Entities.Company>(0, dcompany);
                            //shape_interior.SetExternalData<Data.Entities.Company>(0, dcompany);

                            company.SetData("COMPANY_CLASS", dcompany);
                            shape_interior.SetData("COMPANY_CLASS", dcompany);
                            shape_contract.SetData("COMPANY_CLASS", dcompany);

                            Data.Lists.Companies.Add(dcompany);
                            await SpawnVehicleCompanies(dcompany);
                        });


                        Data.Info.companiesSpawned++;
                    }
                }
            }
        }
예제 #50
0
파일: LogContext.cs 프로젝트: cardinals/SSO
 internal void Fatal(Marker marker, string traceID, string message, string stackTrace)
 {
     Fatal(marker, message, stackTrace, traceID, LogConstant.DEFAULTVALUE, LogConstant.DEFAULTVALUE);
 }
예제 #51
0
        public void TransferMarker(Player player, Card from, Card to, Guid id, string name, ushort count, ushort oldCount, bool isScriptChange)
        {
            Marker marker = from.FindMarker(id, name);

            if (player == null)
            {
                Program.GameMess.Warning("Inconsistent state. Cannot transfer marker to unknown player.");
                return;
            }
            if (player != Player.LocalPlayer)
            {
                if (marker == null)
                {
                    Program.GameMess.Warning("Inconsistent state. Marker not found on card.");
                    return;
                }
                if (marker.Count != oldCount)
                {
                    Program.GameMess.Warning("Inconsistent state. Missing markers to remove");
                }
            }
            Marker newMarker  = to.FindMarker(id, name);
            int    toOldCount = 0;

            if (newMarker != null)
            {
                toOldCount = newMarker.Count - 1;
            }
            int fromNewCount = oldCount - count;
            int toNewCount   = toOldCount + count;

            if (player != Player.LocalPlayer)
            {
                from.RemoveMarker(marker, count);
                to.AddMarker(marker.Model, count);
            }
            Program.GameMess.PlayerEvent(player, "moves {0} {1} marker(s) from {2} to {3}", count, name, from, to);
            if (marker == null)
            {
                marker = from.FindRemovedMarker(id, name);
            }
            if (marker != null)
            {
                if (isScriptChange == false)
                {
                    Program.GameEngine.EventProxy.OnMarkerChanged_3_1_0_0(
                        from,
                        marker.Model.ModelString(),
                        oldCount,
                        fromNewCount,
                        isScriptChange);
                    Program.GameEngine.EventProxy.OnMarkerChanged_3_1_0_0(
                        to,
                        marker.Model.ModelString(),
                        toOldCount,
                        toNewCount,
                        isScriptChange);
                    Program.GameEngine.EventProxy.OnMarkerChanged_3_1_0_1(
                        from,
                        marker.Model.ModelString(),
                        oldCount,
                        fromNewCount,
                        isScriptChange);
                    Program.GameEngine.EventProxy.OnMarkerChanged_3_1_0_1(
                        to,
                        marker.Model.ModelString(),
                        toOldCount,
                        toNewCount,
                        isScriptChange);
                }
                Program.GameEngine.EventProxy.OnMarkerChanged_3_1_0_2(
                    from,
                    marker.Model.Name,
                    marker.Model.Id.ToString(),
                    oldCount,
                    isScriptChange);
                Program.GameEngine.EventProxy.OnMarkerChanged_3_1_0_2(
                    to,
                    marker.Model.Name,
                    marker.Model.Id.ToString(),
                    toOldCount,
                    isScriptChange);
            }
        }
예제 #52
0
 public Android.Views.View GetInfoWindow(Marker marker)
 {
     return(null);
 }
예제 #53
0
 /**
  * constructs an Ai with a random generator and the given marker.
  */
 protected Ai(Marker marker) : base(marker)
 {
     this._random = new Random();
 }
예제 #54
0
        private NatNetPoseData ProcessPoseData(NatNetML.FrameOfMocapData data)
        {
            NatNetPoseData poseData = new NatNetPoseData();

            /*  Parsing Simple Marker Data   */
            for (int i = 0; i < data.nMarkers; i++)
            {
                Marker marker = data.LabeledMarkers[i];
                int    mID    = marker.ID;
                // Console.WriteLine("\tMarker ({0}): \t\tpos ({0:N3}, {1:N3}, {2:N3})", mID, marker.x, marker.y, marker.z);
                poseData.mPos = new Vector3(marker.x, marker.y, marker.z);
            }

            /*  Parsing Rigid Body Frame Data   */
            for (int i = 0; i < mRigidBodies.Count; i++)
            {
                int rbID = mRigidBodies[i].ID;              // Fetching rigid body IDs from the saved descriptions

                for (int j = 0; j < data.nRigidBodies; j++)
                {
                    if (rbID == data.RigidBodies[j].ID)                      // When rigid body ID of the descriptions matches rigid body ID of the frame data.
                    {
                        NatNetML.RigidBody     rb     = mRigidBodies[i];     // Saved rigid body descriptions
                        NatNetML.RigidBodyData rbData = data.RigidBodies[j]; // Received rigid body descriptions

                        if (rbData.Tracked == true)
                        {
                            poseData.rbPos = new Vector3(rbData.x, rbData.y, rbData.z);
                            poseData.rbRot = new Quaternion(rbData.qx, rbData.qy, rbData.qz, rbData.qw);

                            //Console.WriteLine("\tRigidBody ({0}):", rb.Name);
                            //Console.WriteLine("\t\tpos ({0:N3}, {1:N3}, {2:N3})", rbData.x, rbData.y, rbData.z);

                            // Rigid Body Euler Orientation
                            float[] quat = new float[4] {
                                rbData.qx, rbData.qy, rbData.qz, rbData.qw
                            };
                            float[] eulers = new float[3];

                            eulers = NatNetClientML.QuatToEuler(quat, NATEulerOrder.NAT_XYZr); //Converting quat orientation into XYZ Euler representation.
                            double xrot = RadiansToDegrees(eulers[0]);
                            double yrot = RadiansToDegrees(eulers[1]);
                            double zrot = RadiansToDegrees(eulers[2]);

                            //Console.WriteLine("\t\tori ({0:N3}, {1:N3}, {2:N3})", xrot, yrot, zrot);

                            string display = string.Format("\tRigidBody ({0}):", rb.Name);
                            display += string.Format("\t\tpos ({0:N3}, {1:N3}, {2:N3})", rbData.x, rbData.y, rbData.z);
                            display += string.Format("\t\tori ({0:N3}, {1:N3}, {2:N3})", xrot, yrot, zrot);
                            //Console.WriteLine(display);
                        }
                        else
                        {
                            Console.WriteLine("\t{0} is not tracked in current frame", rb.Name);
                        }
                    }
                }
            }

            return(poseData);
        }
예제 #55
0
 public View GetInfoWindow(Marker marker)
 {
     return(null);
 }
예제 #56
0
 public InfoWindowFactory(Marker marker)
 {
     this.marker = marker;
 }
예제 #57
0
        public void DrawTripToDestination(string json)
        {
            Android.Gms.Maps.Model.Polyline mPolyline;
            Marker pickupMarker;

            var directionData = JsonConvert.DeserializeObject <DirectionParser>(json);

            var    pointCode  = directionData.routes[0].overview_polyline.points;
            var    line       = PolyUtil.Decode(pointCode);
            LatLng firstpoint = line[0];
            LatLng lastpoint  = line[line.Count - 1];

            //My take off position
            MarkerOptions markerOptions = new MarkerOptions();

            markerOptions.SetPosition(firstpoint);
            markerOptions.SetIcon(BitmapDescriptorFactory.DefaultMarker(BitmapDescriptorFactory.HueGreen));
            markerOptions.SetTitle("Pickup Location");
            pickupMarker = mainMap.AddMarker(markerOptions);

            //Constanly Changing Current Location;
            MarkerOptions positionMarkerOption = new MarkerOptions();

            positionMarkerOption.SetPosition(firstpoint);
            positionMarkerOption.SetTitle("Current Location");
            positionMarkerOption.SetIcon(BitmapDescriptorFactory.FromResource(Resource.Drawable.position));
            positionMarker = mainMap.AddMarker(positionMarkerOption);

            MarkerOptions markerOptions1 = new MarkerOptions();

            markerOptions1.SetPosition(lastpoint);
            markerOptions1.SetTitle("Destination");
            markerOptions1.SetIcon(BitmapDescriptorFactory.DefaultMarker(BitmapDescriptorFactory.HueRed));
            destinationMarker = mainMap.AddMarker(markerOptions1);

            ArrayList routeList     = new ArrayList();
            int       locationCount = 0;

            foreach (LatLng item in line)
            {
                routeList.Add(item);
                locationCount++;
                Console.WriteLine("Position " + locationCount.ToString() + " = " + item.Latitude.ToString() + " , " + item.Longitude.ToString());
            }

            PolylineOptions polylineOptions = new PolylineOptions()
                                              .AddAll(routeList)
                                              .InvokeWidth(20)
                                              .InvokeColor(Color.Teal)
                                              .InvokeStartCap(new SquareCap())
                                              .InvokeEndCap(new SquareCap())
                                              .InvokeJointType(JointType.Round)
                                              .Geodesic(true);

            mPolyline = mainMap.AddPolyline(polylineOptions);
            mainMap.UiSettings.ZoomControlsEnabled = true;
            mainMap.TrafficEnabled = true;

            LatLng southwest = new LatLng(directionData.routes[0].bounds.southwest.lat, directionData.routes[0].bounds.southwest.lng);
            LatLng northeast = new LatLng(directionData.routes[0].bounds.northeast.lat, directionData.routes[0].bounds.northeast.lng);

            LatLngBounds tripBounds = new LatLngBounds(southwest, northeast);

            mainMap.AnimateCamera(CameraUpdateFactory.NewLatLngBounds(tripBounds, 100));
            destinationMarker.ShowInfoWindow();
        }
예제 #58
0
        private void showChart(int stepIndex)
        {
            TestStep step = TestPlan.ManualConnectionList[TestPlan.currentConnIndex].TestStepList[stepIndex];

            if (!step.IsPrintTrace)
            {
                return;
            }
            windowChart.clearData();
            windowChart.Traces.Clear();
            Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new Action(delegate { }));
            List <SymtChartLib.XAxis> lstXAxis = new List <SymtChartLib.XAxis>();
            int k = 0;

            if (step as LoopTestStep != null)
            {
                return;
            }
            foreach (TestTrace tr in step.ItemList.Where(x => x is TestTrace))
            {
                if (lstXAxis.Select(x => x.Start == tr.XAxisInfo.Start && x.Stop == tr.XAxisInfo.Stop && x.Unit == tr.XAxisInfo.Unit).Count() == 0)
                {
                    lstXAxis.Add(new SymtChartLib.XAxis()
                    {
                        Start = tr.XAxisInfo.Start, Stop = tr.XAxisInfo.Stop, Center = tr.XAxisInfo.Center
                    });
                }
                SymtChartLib.Trace trace = new SymtChartLib.Trace();

                k++;
                //trace.Title = step.Name + tr.TypeName + step.ItemList.IndexOf(tr);
                trace.Title     = step.Name + "_" + tr.TypeName;
                trace.AxisIndex = lstXAxis.FindIndex(x => x.Start == tr.XAxisInfo.Start && x.Stop == tr.XAxisInfo.Stop && x.Center == tr.XAxisInfo.Center);
                if (tr.ResultData != null)
                {
                    List <XYData> xyData = tr.ResultData;
                    if (xyData.Count > 0)
                    {
                        Point[] point = new Point[xyData.Count];
                        for (int i = 0; i < xyData.Count; i++)
                        {
                            Point p = new Point()
                            {
                                X = xyData[i].X, Y = xyData[i].Y
                            };
                            point[i] = p;
                        }

                        trace.TraceData = point;
                        windowChart.Traces.Add(trace);
                    }
                }
                //设置Marker
                foreach (XYTestMarker marker in tr.TestSpecList[SpecIndex].TestMarkerList)
                {
                    if (tr.ResultData.Select((d, i) => { return(new { value = d.X, valueIndex = i }); }).OrderBy(x => Math.Abs(x.value - marker.MarkerResult[0].X)).FirstOrDefault() != null)
                    {
                        int    index = tr.ResultData.Select((d, i) => { return(new { value = d.X, valueIndex = i }); }).OrderBy(x => Math.Abs(x.value - marker.MarkerResult[0].X)).FirstOrDefault().valueIndex;
                        Marker m     = new Marker()
                        {
                            X = tr.ResultData[index].X, Y = tr.ResultData[index].Y
                        };
                        trace.Markers.Add(m);
                    }
                }
                if (tr.TestSpecList.Count > 0 && SpecIndex >= 0)
                {
                    XYTestLimit testLimit = tr.TestSpecList[SpecIndex].TestLimit;
                    if (testLimit != null)
                    {
                        if (testLimit.Enable)
                        {
                            foreach (var limit in testLimit.LimitLine)
                            {
                                SymtChartLib.LimitLineTypeEnum type = new SymtChartLib.LimitLineTypeEnum();
                                if (limit.Type == ModelBaseLib.LimitLineTypeEnum.Max)
                                {
                                    type = SymtChartLib.LimitLineTypeEnum.Max;
                                }
                                else if (limit.Type == ModelBaseLib.LimitLineTypeEnum.Min)
                                {
                                    type = SymtChartLib.LimitLineTypeEnum.Min;
                                }
                                else
                                {
                                    type = SymtChartLib.LimitLineTypeEnum.None;
                                }
                                trace.LimitLineList.Add(new SymtChartLib.LimitLine()
                                {
                                    X1 = limit.X1, Y1 = limit.Y1, X2 = limit.X2, Y2 = limit.Y2, Type = type
                                });
                            }
                        }
                        else
                        {
                            double?yValue = null;
                            if (tr.TestSpecList[SpecIndex].LowLimit == null && tr.TestSpecList[SpecIndex].UpLimit == null)
                            {
                            }
                            else
                            {
                                if (trace.TraceData != null)
                                {
                                    double x1 = trace.TraceData.Select((d, y) => d.X).Min();
                                    double x2 = trace.TraceData.Select((d, y) => d.X).Max();
                                    yValue = tr.TestSpecList[SpecIndex].LowLimit != null ? tr.TestSpecList[SpecIndex].LowLimit : tr.TestSpecList[SpecIndex].UpLimit;
                                    trace.LimitLineList.Add(new SymtChartLib.LimitLine()
                                    {
                                        X1 = x1, Y1 = Convert.ToDouble(yValue), X2 = x2, Y2 = Convert.ToDouble(yValue), Type = SymtChartLib.LimitLineTypeEnum.None
                                    });
                                }
                            }
                        }
                    }
                }
                trace.Scale             = tr.Scale;
                trace.DivisionCount     = tr.DivCount;
                trace.ReferenceLevel    = tr.RefValue;
                trace.Unit              = tr.Unit;
                trace.ReferencePosition = tr.RefPosition;
            }
            windowChart.XAxisList = lstXAxis;
            windowChart.UpdateData();
            if (step.IsSaveScreen && step.SceenSize != null)
            {
                saveChart(stepIndex, step.SceenSize);
            }
        }
예제 #59
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Visible != null)
         {
             hashCode = hashCode * 59 + Visible.GetHashCode();
         }
         if (Opacity != null)
         {
             hashCode = hashCode * 59 + Opacity.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (UId != null)
         {
             hashCode = hashCode * 59 + UId.GetHashCode();
         }
         if (Ids != null)
         {
             hashCode = hashCode * 59 + Ids.GetHashCode();
         }
         if (CustomData != null)
         {
             hashCode = hashCode * 59 + CustomData.GetHashCode();
         }
         if (Meta != null)
         {
             hashCode = hashCode * 59 + Meta.GetHashCode();
         }
         if (MetaArray != null)
         {
             hashCode = hashCode * 59 + MetaArray.GetHashCode();
         }
         if (HoverLabel != null)
         {
             hashCode = hashCode * 59 + HoverLabel.GetHashCode();
         }
         if (Stream != null)
         {
             hashCode = hashCode * 59 + Stream.GetHashCode();
         }
         if (Transforms != null)
         {
             hashCode = hashCode * 59 + Transforms.GetHashCode();
         }
         if (UiRevision != null)
         {
             hashCode = hashCode * 59 + UiRevision.GetHashCode();
         }
         if (Labels != null)
         {
             hashCode = hashCode * 59 + Labels.GetHashCode();
         }
         if (Parents != null)
         {
             hashCode = hashCode * 59 + Parents.GetHashCode();
         }
         if (Values != null)
         {
             hashCode = hashCode * 59 + Values.GetHashCode();
         }
         if (BranchValues != null)
         {
             hashCode = hashCode * 59 + BranchValues.GetHashCode();
         }
         if (Count != null)
         {
             hashCode = hashCode * 59 + Count.GetHashCode();
         }
         if (Level != null)
         {
             hashCode = hashCode * 59 + Level.GetHashCode();
         }
         if (MaxDepth != null)
         {
             hashCode = hashCode * 59 + MaxDepth.GetHashCode();
         }
         if (Tiling != null)
         {
             hashCode = hashCode * 59 + Tiling.GetHashCode();
         }
         if (Marker != null)
         {
             hashCode = hashCode * 59 + Marker.GetHashCode();
         }
         if (PathBar != null)
         {
             hashCode = hashCode * 59 + PathBar.GetHashCode();
         }
         if (Text != null)
         {
             hashCode = hashCode * 59 + Text.GetHashCode();
         }
         if (TextInfo != null)
         {
             hashCode = hashCode * 59 + TextInfo.GetHashCode();
         }
         if (TextTemplate != null)
         {
             hashCode = hashCode * 59 + TextTemplate.GetHashCode();
         }
         if (TextTemplateArray != null)
         {
             hashCode = hashCode * 59 + TextTemplateArray.GetHashCode();
         }
         if (HoverText != null)
         {
             hashCode = hashCode * 59 + HoverText.GetHashCode();
         }
         if (HoverTextArray != null)
         {
             hashCode = hashCode * 59 + HoverTextArray.GetHashCode();
         }
         if (HoverInfo != null)
         {
             hashCode = hashCode * 59 + HoverInfo.GetHashCode();
         }
         if (HoverInfoArray != null)
         {
             hashCode = hashCode * 59 + HoverInfoArray.GetHashCode();
         }
         if (HoverTemplate != null)
         {
             hashCode = hashCode * 59 + HoverTemplate.GetHashCode();
         }
         if (HoverTemplateArray != null)
         {
             hashCode = hashCode * 59 + HoverTemplateArray.GetHashCode();
         }
         if (TextFont != null)
         {
             hashCode = hashCode * 59 + TextFont.GetHashCode();
         }
         if (InsideTextFont != null)
         {
             hashCode = hashCode * 59 + InsideTextFont.GetHashCode();
         }
         if (OutsideTextFont != null)
         {
             hashCode = hashCode * 59 + OutsideTextFont.GetHashCode();
         }
         if (TextPosition != null)
         {
             hashCode = hashCode * 59 + TextPosition.GetHashCode();
         }
         if (Sort != null)
         {
             hashCode = hashCode * 59 + Sort.GetHashCode();
         }
         if (Domain != null)
         {
             hashCode = hashCode * 59 + Domain.GetHashCode();
         }
         if (IdsSrc != null)
         {
             hashCode = hashCode * 59 + IdsSrc.GetHashCode();
         }
         if (CustomDataSrc != null)
         {
             hashCode = hashCode * 59 + CustomDataSrc.GetHashCode();
         }
         if (MetaSrc != null)
         {
             hashCode = hashCode * 59 + MetaSrc.GetHashCode();
         }
         if (LabelsSrc != null)
         {
             hashCode = hashCode * 59 + LabelsSrc.GetHashCode();
         }
         if (ParentsSrc != null)
         {
             hashCode = hashCode * 59 + ParentsSrc.GetHashCode();
         }
         if (ValuesSrc != null)
         {
             hashCode = hashCode * 59 + ValuesSrc.GetHashCode();
         }
         if (TextSrc != null)
         {
             hashCode = hashCode * 59 + TextSrc.GetHashCode();
         }
         if (TextTemplateSrc != null)
         {
             hashCode = hashCode * 59 + TextTemplateSrc.GetHashCode();
         }
         if (HoverTextSrc != null)
         {
             hashCode = hashCode * 59 + HoverTextSrc.GetHashCode();
         }
         if (HoverInfoSrc != null)
         {
             hashCode = hashCode * 59 + HoverInfoSrc.GetHashCode();
         }
         if (HoverTemplateSrc != null)
         {
             hashCode = hashCode * 59 + HoverTemplateSrc.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #60
0
파일: LogContext.cs 프로젝트: cardinals/SSO
 internal void Error(Marker marker, string traceID, string message, Exception ex, string filter1, string filter2)
 {
     Error(marker, traceID, message, ex, filter1, filter2);
 }