//private void Grid_MouseMove(object sender, MouseEventArgs e) //{ // //var pos = e.GetPosition(MainGrid); // //ObsRectangle.SetValue(Grid.ColumnProperty, pos); // //Console.WriteLine(pos); //} //private void Grid_MouseDown(object sender, MouseButtonEventArgs e) //{ // //if (DataManager.NaviDis != null) // //{ // // for (int i = DataManager.NaviDis.Count - 1; i < DataManager.NaviDis.Count; i++) // // { // // NaviRectLocation(new NaviPoint((float)DataManager.NaviDis[i])); // // } // //} //} public void NaviRectLocation() { //if (DataManager.NaviDis != null) //{ // for (int i = DataManager.NaviDis.Count - 1; i < DataManager.NaviDis.Count; i++) // { // //Console.WriteLine(DataManager.NaviDis[i]); // // rectloc += 30 + p.NaviDistance * 0.3; // NaviRectangle.Margin = new Thickness(rectloc, 0, 0, 0); // } //} //NaviRectangle.SetValue(Grid.RowProperty, 0); Rectangle rect = GetNewRect(Brushes.DarkBlue); rect.SetValue(Grid.RowProperty, 0); rect.SetValue(Grid.ColumnProperty, 0); //네비 정보 만들어서 NaviInfo info = new NaviInfo(); //info.Navi_Index = DataManager.NaviPoints[DataManager.NaviPoints.Count - 1].INDEX; //info.NaviPosX = DataManager.NaviPoints[DataManager.NaviPoints.Count - 1].NaviPosX; //info.NaviPosY = DataManager.NaviPoints[DataManager.NaviPoints.Count - 1].NaviPosY; //tag에 삽입 rect.Tag = info; navirectloc += 30; rect.Margin = new Thickness(navirectloc, 0, 0, 0); MainPointGrid.Children.Add(rect); }
public void OnNaviInfoUpdate(NaviInfo p0) { }