public UpdateAnalogCoordinate( RemoteName remoteName, PointName pointName, PointCoordinate newPointCoordinate) { RemoteName = remoteName; PointName = pointName; NewPointCoordinate = newPointCoordinate; }
public AddAnalog( RemoteName remoteName, PointName pointName, PointCoordinate pointCoordinate) { RemoteName = remoteName; PointName = pointName; PointCoordinate = pointCoordinate; }
public Point(PointName pointName) { switch (pointName) { case PointName.AceOfClub: this.PointName = PointName.AceOfClub; this.PointValue = 1; break; case PointName.AceOfDiamonds: this.PointName = PointName.AceOfDiamonds; this.PointValue = 1; break; case PointName.AceOfHearts: this.PointName = PointName.AceOfHearts; this.PointValue = 1; break; case PointName.AceOfSpades: this.PointName = PointName.AceOfSpades; this.PointValue = 1; break; case PointName.MostCards: this.PointName = PointName.MostCards; this.PointValue = 3; break; case PointName.MostSpades: this.PointName = PointName.MostSpades; this.PointValue = 1; break; case PointName.TenOfDiamonds: this.PointName = PointName.TenOfDiamonds; this.PointValue = 2; break; case PointName.TwoOfSpades: this.PointName = PointName.TwoOfSpades; this.PointValue = 1; break; case PointName.Sweep: this.PointName = PointName.Sweep; this.PointValue = 1; break; } }
/// <summary> /// Sets the message name/path. /// </summary> public static Message SetName(this Message message, PointName name) { return(MessageModule.SetName(name, message)); }
private void drawPanel_Click2(object sender, EventArgs e) { if (pnlSettings.Visible) { pnlSettings.Visible = false; } else { if (MapValues.mapPolyLabels == Values.EmptyGuid && !ignoreClick) { #if (PocketPC || WindowsCE || Mobile) int pointClickDist = pnlWidth / 20; #else int pointClickDist = pnlWidth / 60; #endif drawPN = false; double dist, sDist = int.MaxValue; Point p = drawPanel.PointToClient(MousePosition); foreach (PointName pn in pns) { dist = TtUtils.Distance(calcPointLocation(pn.X, pn.Y), p); if (dist < pointClickDist && dist < sDist) { sDist = dist; drawPN = true; clickedPN = pn; //break; } } } } ignoreClick = false; drawPanel.Refresh(); }