Esempio n. 1
0
        public void GMap_MouseClick(object sender, MouseEventArgs e)
        {
            PointLatLng point = main.gMap.FromLocalToLatLng(e.X, e.Y);

            currentPoint     = point;
            txtPosition.Text = PositionConverter.ParsePointToString(point, cmbPosition.SelectedItem.ToString());
        }
Esempio n. 2
0
        public void setFireUnitInfo(GMarker marker, GMarkerRect rect)
        {
            this.getmarker = marker;
            this.getrect   = rect;
            if (getmarker != null)
            {
                clearField();
                lbBatteryID.Text = main.detailMarkers[getmarker].GetFireUnitBatteryID();
                lbDetail.Text    = main.detailMarkers[getmarker].GetFireUnitDetail();
                lbNumber.Text    = main.detailMarkers[getmarker].GetFireUnitNumber();
                lbPosition.Text  = PositionConverter.ParsePointToString(main.detailMarkers[getmarker].GetFireUnitPoint(), cmbPosition.Text);
                lbType.Text      = main.detailMarkers[getmarker].GetFireUnitType();
                lbStatus.Text    = main.detailMarkers[getmarker].GetFireUnitStatus();

                //if (main.detailMarkers[getmarker].GetFireUnitStatus() == "OP")
                //{
                //    lbStatus.Text = "OP";
                //}
                //else if (main.detailMarkers[getmarker].GetFireUnitStatus() == "Limited")
                //{
                //    lbStatus.Text = "Limited";
                //}
                //else if (main.detailMarkers[getmarker].GetFireUnitStatus() == "NonOP")
                //{
                //    lbStatus.Text = "NonOP";
                //}
            }
        }
        public void EditMarker(int ID, string Name, int Img_index, int Img_ID, double Lat, double Lng)
        {
            if (Markers.ContainsKey(ID))
            {
                SymbolInfo sinfo = Markers[ID];
                sinfo.Name               = Name;
                sinfo.ImgIndex           = Img_index;
                sinfo.ImgID              = Img_ID;
                sinfo.Point              = new PointLatLng(Lat, Lng);
                sinfo.Marker.ToolTipText = PositionConverter.ParsePointToString(new PointLatLng(Lat, Lng), PositionConverter.DefaultScale) + ", " + Name;

                if (DataSettings.UseDatabase)
                {
                    MySqlConnection conn = DataSettings.GetConnection();
                    using (MySqlCommand cmd = new MySqlCommand(null, conn))
                    {
                        cmd.CommandText = "UPDATE marker_info SET marker_name = @name, marker_imgindex = @img_index, marker_imgid = @img_id" +
                                          ", marker_lat = @lat, marker_lng = @lng, mission_id = @mission_id WHERE marker_id = @id";
                        cmd.Parameters.Clear();
                        cmd.Parameters.AddWithValue("id", sinfo.ID);
                        cmd.Parameters.AddWithValue("name", sinfo.Name);
                        cmd.Parameters.AddWithValue("img_index", sinfo.ImgIndex);
                        cmd.Parameters.AddWithValue("img_id", sinfo.ImgID);
                        cmd.Parameters.AddWithValue("lat", sinfo.Point.Lat);
                        cmd.Parameters.AddWithValue("lng", sinfo.Point.Lng);
                        cmd.Parameters.AddWithValue("mission_id", sinfo.Mission);
                        cmd.ExecuteNonQuery();
                    }
                }
            }
        }
Esempio n. 4
0
 private void cmbPosition_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cmbPosition.SelectedIndex > -1 && getmarker != null)
     {
         lbPosition.Text = PositionConverter.ParsePointToString(getmarker.Position, cmbPosition.SelectedItem.ToString());
     }
 }
Esempio n. 5
0
 public void setTrackInfo(TrackData track)
 {
     this.track = track;
     if (track != null)
     {
         txtNumber.Text       = track.Number.ToString("000");
         txtCallSign.Text     = track.CallSign;
         cmbStatus.Text       = track.Status.ToString();
         txtPosition.Text     = PositionConverter.ParsePointToString(track.Position, cmbPosition.Text);
         txtSpeed.Text        = ScaleConverter.ConvertSpeed(track.Speed, "knots", cmbSpeed.Text).ToString();
         txtBearing.Text      = ScaleConverter.ConvertBearing(track.Bearing, "degree", cmbBearing.Text).ToString();
         txtCallSign.ReadOnly = false;
         txtPosition.ReadOnly = txtSpeed.ReadOnly = txtBearing.ReadOnly = txtHeight.ReadOnly = !track.Faker;
         if (track.Height.HasValue)
         {
             txtHeight.Text = ScaleConverter.ConvertHeight(track.Height.Value, "ft", cmbHeight.Text).ToString();
         }
         else
         {
             txtHeight.Text     = "Unknown";
             txtHeight.ReadOnly = true;
         }
     }
     else
     {
         clearFields();
     }
 }
Esempio n. 6
0
 private void cmbPosition_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cmbPosition.SelectedIndex > -1 && txtPosition.Text != "")
     {
         txtPosition.Text = PositionConverter.ParsePointToString(currentPoint, cmbPosition.SelectedItem.ToString());
     }
 }
 public void setFireUnitInfo(GMarker marker, GMarkerRect rect)
 {
     this.getmarker = marker;
     this.getrect   = rect;
     if (getmarker != null)
     {
         clearField();
         txtBatteryID.Text = main.detailMarkers[getmarker].GetFireUnitBatteryID();
         txtDetail.Text    = main.detailMarkers[getmarker].GetFireUnitDetail();
         txtNumber.Text    = main.detailMarkers[getmarker].GetFireUnitNumber();
         txtPosition.Text  = PositionConverter.ParsePointToString(main.detailMarkers[getmarker].GetFireUnitPoint(), cmbPosition.Text);
         cmbType.Text      = main.detailMarkers[getmarker].GetFireUnitType();
         if (main.detailMarkers[getmarker].GetFireUnitStatus() == "OP")
         {
             radioButton3.Checked = true;
         }
         else if (main.detailMarkers[getmarker].GetFireUnitStatus() == "Limited")
         {
             radioButton2.Checked = true;
         }
         else if (main.detailMarkers[getmarker].GetFireUnitStatus() == "NonOP")
         {
             radioButton1.Checked = true;
         }
     }
 }
Esempio n. 8
0
 private void cmbPosition_SelectedIndexChanged(object sender, EventArgs e)
 {
     //Can change eographic coordinate system
     if (cmbPosition.SelectedIndex > -1 && txtPosition.Text != "")
     {
         PointLatLng point = PositionConverter.ParsePointFromString(txtPosition.Text);
         txtPosition.Text = PositionConverter.ParsePointToString(point, cmbPosition.Text);
     }
 }
Esempio n. 9
0
 public void GMap_MouseClick(object sender, MouseEventArgs e)
 {
     if ((track != null && track.Faker) || !editMode)
     {
         PointLatLng point = ControlViews.Main.gMap.FromLocalToLatLng(e.X, e.Y);
         this.point       = point;
         txtPosition.Text = PositionConverter.ParsePointToString(point, cmbPosition.SelectedItem.ToString());
     }
 }
Esempio n. 10
0
 public void setLandMarkInfo(GMarker marker, GMarkerRect rect)
 {
     this.getmarker = marker;
     this.getrect   = rect;
     if (getmarker != null)
     {
         clearField();
         txtName.Text     = main.detailMarkers[getmarker].GetLandMarkName();
         txtLabel.Text    = main.detailMarkers[getmarker].GetLandMarkLabel();
         txtPosition.Text = PositionConverter.ParsePointToString(main.detailMarkers[getmarker].GetLandmarkPoint(), cmbPosition.Text);
         txtRemark.Text   = main.detailMarkers[getmarker].GetLandMarkRemark();
         cmbType.Text     = main.detailMarkers[getmarker].GetLandMarkType();
     }
 }
Esempio n. 11
0
        public void set_Detail(GMapMarker marker)
        {
            this.getMarker = marker;
            if (dicMarker.ContainsKey(marker))
            {
                txtLocationLandmark.Text      = PositionConverter.ParsePointToString(dicMarker[marker].Location, "Signed Degree");
                cmbTypeLandmark.SelectedIndex = dicMarker[marker].Type; //ค่าไม่ยอมเปลี่ยนแบบเรียลไทม์ อย่าลืมแก้
                Console.WriteLine(dicMarker[marker].Type);
                txtNameLandmark.Text  = dicMarker[marker].Name;
                txtLabelLandmark.Text = dicMarker[marker].Label;

                cmbTypeLandmark.ForeColor  = Color.Black;
                txtNameLandmark.ForeColor  = Color.Black;
                txtLabelLandmark.ForeColor = Color.Black;
            }
        }
Esempio n. 12
0
 public void setTrackInfo(TrackData track)
 {
     this.track = track;
     if (track != null)
     {
         foreach (Control control in Controls)
         {
             control.Visible = true;
         }
         lbNumber.Text   = track.Number.ToString("000");
         lbCallsign.Text = track.CallSign ?? "";
         if (track.Status == TrackStatus.OverridePending)
         {
             lbStatus.Text = TrackStatus.Pending.ToString();
         }
         else
         {
             lbStatus.Text = track.Status.ToString();
         }
         lbPosition.Text = PositionConverter.ParsePointToString(track.Position, cmbPosition.Text);
         lbSpeed.Text    = ScaleConverter.ConvertSpeed(track.Speed, "knots", cmbSpeed.Text).ToString("#,##0.####");
         lbBearing.Text  = ScaleConverter.ConvertBearing(track.Bearing, "degree", cmbBearing.Text).ToString("#,##0.####");
         if (track.Height.HasValue)
         {
             lbHeight.Text = ScaleConverter.ConvertHeight(track.Height.Value, "ft", cmbHeight.Text).ToString("#,##0.####");
         }
         else
         {
             lbHeight.Text = "Unknown";
         }
     }
     else
     {
         foreach (Control control in Controls)
         {
             control.Visible = false;
         }
         lbNumber.Text   = "";
         lbCallsign.Text = "";
         lbStatus.Text   = "";
         lbPosition.Text = "";
         lbSpeed.Text    = "";
         lbBearing.Text  = "";
         lbHeight.Text   = "";
     }
 }
Esempio n. 13
0
 public void setVitalAssetInfo(GMarker marker, GMarkerRect rect)
 {
     getmarker = marker;
     getrect   = rect;
     if (main.detailMarkers.ContainsKey(marker))
     {
         clearField();
         lbName.Text              = main.detailMarkers[getmarker].GetVitalAssetName();
         lbPosition.Text          = PositionConverter.ParsePointToString(main.detailMarkers[getmarker].GetVitalAssetPoint(), cmbPosition.Text);
         lbType.Text              = main.detailMarkers[getmarker].GetVitalAssetType();
         lbPriority.Text          = main.detailMarkers[getmarker].GetVitalAssetPriority();
         lbProvince.Text          = main.detailMarkers[getmarker].GetVitalAssetProvince();
         lbSize.Text              = main.detailMarkers[getmarker].GetVitalAssetAssetSize();
         lbResponsibleUnit.Text   = main.detailMarkers[getmarker].GetVitalAssetUnitResponsible();
         lbUnitStatus.Text        = main.detailMarkers[getmarker].GetVitalAssetUnitStatus();
         lbResponsiblePerson.Text = main.detailMarkers[getmarker].GetVitalAssetResponsePerson();
     }
 }
Esempio n. 14
0
        public void seCityInfo(GMarker marker, GMarkerRect rect)
        {
            this.getmarker = marker;
            this.getrect   = rect;

            if (getmarker != null)
            {
                MessageBox.Show("Not null");
                txtLabel.Text    = main.detailMarkers[getmarker].GetCityLabel().ToString();
                txtName.Text     = main.detailMarkers[getmarker].GetCityName().ToString();
                txtPosition.Text = PositionConverter.ParsePointToString(main.detailMarkers[getmarker].GetCityPoint(), cmbPosition.Text);
                txtRemark.Text   = main.detailMarkers[getmarker].GetCityRemark().ToString();
            }
            else if (getmarker == null)
            {
                MessageBox.Show("Null");
            }
        }
Esempio n. 15
0
        public void setCityInfo(GMarker marker, GMarkerRect rect)
        {
            getmarker = marker;
            getrect   = rect;

            if (main.detailMarkers.ContainsKey(marker))
            {
                clearField();


                lbName.Text = main.detailMarkers[getmarker].GetCityName();

                lbLabel.Text = main.detailMarkers[getmarker].GetCityLabel();

                lbRemark.Text = main.detailMarkers[getmarker].GetCityRemark();

                lbPosition.Text = PositionConverter.ParsePointToString(main.detailMarkers[getmarker].GetCityPoint(), cmbPosition.Text);
            }
        }
Esempio n. 16
0
 public void setAirportInfo(GMarker marker, GMarkerRect rect)
 {
     this.getmarker = marker;
     this.getrect   = rect;
     if (getmarker != null)
     {
         lbName.Text     = main.detailMarkers[getmarker].GetName();
         lbICAO.Text     = main.detailMarkers[getmarker].GetAirportICAO();
         lbIATA.Text     = main.detailMarkers[getmarker].GetAirportIATA();
         lbCountry.Text  = main.detailMarkers[getmarker].GetCountry();
         lbPosition.Text = PositionConverter.ParsePointToString(main.detailMarkers[getmarker].GetAirportPoint(), cmbPosition.Text);
         if (main.detailMarkers[getmarker].GetAirportInternational() == 1)
         {
             lbInternational.Text = "สนามบินนานาชาติ";
         }
         else
         {
             lbInternational.Text = "ไม่ใช่สนามบินนานาชาติ";
         }
     }
 }
        public void setVitalAssetInfo(GMarker marker, GMarkerRect rect)
        {
            this.getmarker = marker;
            this.getrect   = rect;

            if (getmarker != null)
            {
                txtName.Text              = main.detailMarkers[getmarker].GetVitalAssetName();
                txtPosition.Text          = PositionConverter.ParsePointToString(main.detailMarkers[getmarker].GetVitalAssetPoint(), cmbPosition.Text);
                cmbType.Text              = main.detailMarkers[getmarker].GetVitalAssetType();
                txtPriority.Text          = main.detailMarkers[getmarker].GetVitalAssetPriority();
                cmbProvince.Text          = main.detailMarkers[getmarker].GetVitalAssetProvince();
                txtSize.Text              = main.detailMarkers[getmarker].GetVitalAssetAssetSize();
                cmbResponsibleUnit.Text   = main.detailMarkers[getmarker].GetVitalAssetUnitResponsible();
                txtUnitStatus.Text        = main.detailMarkers[getmarker].GetVitalAssetUnitStatus();
                cmbResponsiblePerson.Text = main.detailMarkers[getmarker].GetVitalAssetResponsePerson();
            }
            else
            {
                MessageBox.Show("Error");
            }
        }
Esempio n. 18
0
 public void setFixedPointInfo(GMarker marker, GMarkerRect rect)
 {
     this.getmarker = marker;
     this.getrect = rect;
     if(getmarker != null)
     {
         txtLabel.Text = main.detailMarkers[getmarker].GetFixedPointLabel();
         txtNumber.Text = main.detailMarkers[getmarker].GetFixedPointNumber();
         txtPosition.Text = PositionConverter.ParsePointToString(main.detailMarkers[getmarker].GetFixedPoint_Point(), cmbPosition.Text);
         txtRemark.Text = main.detailMarkers[getmarker].GetFixedPointSource();
         if (main.detailMarkers[getmarker].GetFixedPointType() == rdbFRadar.Text)
         {
             rdbFRadar.Checked = true;
         }else if (main.detailMarkers[getmarker].GetFixedPointType() == rdbMRadar.Text)
         {
             rdbMRadar.Checked = true;
         }
         else if (main.detailMarkers[getmarker].GetFixedPointType() == rdbOBSPost.Text)
         {
             rdbOBSPost.Checked = true;
         }
         else if (main.detailMarkers[getmarker].GetFixedPointType() == rdbSpecial.Text)
         {
             rdbSpecial.Checked = true;
         }
         else if (main.detailMarkers[getmarker].GetFixedPointType() == rdbTactical.Text)
         {
             rdbTactical.Checked = true;
         }
         if(main.detailMarkers[getmarker].GetFixedPointLiveSIM() == 1)
         {
             checkBox1.Checked = true;
         }
         else
         {
             checkBox1.Checked = false;
         }
     }
 }
Esempio n. 19
0
        public void setFixedPointInfo(GMarker marker, GMarkerRect rect)
        {
            this.getmarker = marker;
            this.getrect   = rect;
            if (getmarker != null)
            {
                clearField();
                lbLabel.Text    = main.detailMarkers[getmarker].GetFixedPointLabel();
                lbNumber.Text   = main.detailMarkers[getmarker].GetFixedPointNumber();
                lbPosition.Text = PositionConverter.ParsePointToString(main.detailMarkers[getmarker].GetFixedPoint_Point(), cmbPosition.Text);
                lbRemark.Text   = main.detailMarkers[getmarker].GetFixedPointSource();
                lbType.Text     = main.detailMarkers[getmarker].GetFixedPointType();

                if (main.detailMarkers[getmarker].GetFixedPointLiveSIM() == 1)
                {
                    lbLiveSIM.Text = "Check box Checked";
                }
                else
                {
                    lbLiveSIM.Text = "Not Check";
                }
            }
        }
Esempio n. 20
0
        public void setAirportInfo(GMarker marker, GMarkerRect rect)
        {
            this.getmarker = marker;
            this.getrect   = rect;

            if (getmarker != null)
            {
                clearField();
                txtName.Text     = main.detailMarkers[getmarker].GetName();
                txtICAO.Text     = main.detailMarkers[getmarker].GetAirportICAO();
                txtIATA.Text     = main.detailMarkers[getmarker].GetAirportIATA();
                txtCountry.Text  = main.detailMarkers[getmarker].GetCountry();
                txtPosition.Text = PositionConverter.ParsePointToString(main.detailMarkers[getmarker].GetAirportPoint(), cmbPosition.Text);
                if (main.detailMarkers[getmarker].GetAirportInternational() == 1)
                {
                    chbInternational.Checked = true;
                }
                else
                {
                    chbInternational.Checked = false;
                }
            }
        }
Esempio n. 21
0
 public void setTrackInfo(TrackData track)
 {
     currentTrack = track;
     if (track != null)
     {
         txtKey.Text          = track.Key;
         txtPosition.Text     = PositionConverter.ParsePointToString(track.Position, cmbPosition.Text);
         txtSpeed.Text        = ScaleConverter.ConvertSpeed(track.Speed, "knots", cmbSpeed.Text).ToString();
         txtBearing.Text      = ScaleConverter.ConvertBearing(track.Bearing, "degree", cmbBearing.Text).ToString();
         txtPosition.ReadOnly = false;
         txtSpeed.ReadOnly    = false;
         txtBearing.ReadOnly  = false;
         if (track.Height.HasValue)
         {
             txtHeight.Text     = ScaleConverter.ConvertHeight(track.Height.Value, "ft", cmbHeight.Text).ToString();
             txtHeight.ReadOnly = false;
         }
         else
         {
             txtHeight.Text     = "Unknown";
             txtHeight.ReadOnly = true;
         }
         lbScope.Text = track.Faker == TrackFakerType.Client ? "Client" : "Server";
     }
     else
     {
         txtPosition.ReadOnly = true;
         txtSpeed.ReadOnly    = true;
         txtBearing.ReadOnly  = true;
         txtKey.Text          = "";
         txtPosition.Text     = "";
         txtSpeed.Text        = "";
         txtBearing.Text      = "";
         txtHeight.Text       = "";
         lbScope.Text         = "";
     }
 }
Esempio n. 22
0
 //Location Landmark//
 public void setPosition(PointLatLng p)
 {
     txtLocationLandmark.ForeColor = Color.Black;
     txtLocationLandmark.Text      = PositionConverter.ParsePointToString(p, "Signed Degree");
 }
        private GMapMarker MarkSymbol(int img_id, string name, PointLatLng point, int IdSy)
        {
            Bitmap bmpMarker = null;

            if (string.IsNullOrEmpty(name))
            {
                name = "-";
            }
            if (img_id == 1)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/S1.png");
            }
            else if (img_id == 2)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/S2.png");
            }
            else if (img_id == 3)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/S3.png");
            }
            else if (img_id == 4)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/U1.png");
            }
            else if (img_id == 5)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/U2.png");
            }
            else if (img_id == 6)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/U3.png");
            }
            else if (img_id == 7)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/AB.png");
            }
            else if (img_id == 8)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/AC.png");
            }
            else if (img_id == 9)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/BL.png");
            }
            else if (img_id == 10)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/GU.png");
            }
            else if (img_id == 11)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/GA.png");
            }
            else if (img_id == 12)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/GH.png");
            }
            else if (img_id == 13)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/RD.png");
            }
            else if (img_id == 14)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/SU.png");
            }
            else if (img_id == 15)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/SA.png");
            }
            else if (img_id == 16)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/SH.png");
            }
            else if (img_id == 17)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/BC.png");
            }
            else if (img_id == 18)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/BU.png");
            }
            else if (img_id == 19)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/CP.png");
            }
            else if (img_id == 20)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/LM.png");
            }
            else if (img_id == 21)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/MA.png");
            }
            else if (img_id == 22)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/MU.png");
            }
            else if (img_id == 23)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/RS.png");
            }
            else if (img_id == 24)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/SC.png");
            }
            else if (img_id == 25)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/SN.png");
            }
            else if (img_id == 26)
            {
                bmpMarker = (Bitmap)Image.FromFile("Img/point/VP.png");
            }
            GMapMarker marker = new GMarkerGoogle(point, bmpMarker)
            {
                ToolTipText      = PositionConverter.ParsePointToString(point, PositionConverter.DefaultScale) + ", " + name,
                ToolTipMode      = MarkerTooltipMode.OnMouseOver,
                Tag              = IdSy,
                IsHitTestVisible = true
            };
            mainForm    main = mainForm.GetInstance();
            GMapControl map  = main.GetmainMap();
            double      zoom = map.Zoom;
            double      pr   = ((zoom - 5) * 10) / 100;

            if (pr == 0)
            {
                pr = 1;
            }
            marker.Size = new Size((int)(100 * pr), (int)(100 * pr));
            if (zoom <= 9)
            {
                marker.Offset = new Point((-marker.Size.Width / 2), (-marker.Size.Height / 2) - 20);
            }
            else
            {
                marker.Offset = new Point((-marker.Size.Width / 2), (-marker.Size.Height / 2) - 25);
            }
            marker.ToolTip.Font = new Font("TH SarabunPSK", 14, FontStyle.Bold);


            GMapOverlay overlay = Main.GetOverlay("markersP");

            overlay.Markers.Add(marker);
            return(marker);
        }
Esempio n. 24
0
 internal void GMap_MouseClick(object sender, MouseEventArgs e)
 {
     PointLatLng point = ControlViews.Main.gMap.FromLocalToLatLng(e.X, e.Y);
     txtPosition.Text = PositionConverter.ParsePointToString(point, cmbPosition.Text);
 }