Rev 2350 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2350 | Rev 2354 | ||
---|---|---|---|
Line 1723... | Line 1723... | ||
1723 | Dispatcher.Invoke(() => MainMap.Markers.Remove(wpActiveMarker)); |
1723 | Dispatcher.Invoke(() => MainMap.Markers.Remove(wpActiveMarker)); |
1724 | } |
1724 | } |
Line 1725... | Line 1725... | ||
1725 | 1725 | ||
1726 | if(wpList.Count > 0 && ((data[67] & 2) == 2)) |
1726 | if(wpList.Count > 0 && ((data[67] & 2) == 2)) |
- | 1727 | { |
|
- | 1728 | //if (_wpIndex > -1) |
|
- | 1729 | //{ |
|
- | 1730 | // row = (DataGridRow)dgvWP.ItemContainerGenerator.ContainerFromIndex(_wpIndex); |
|
- | 1731 | // row.Background = new SolidColorBrush(Colors.Transparent); |
|
- | 1732 | // row.BorderBrush = new SolidColorBrush(Colors.Transparent); |
|
- | 1733 | // row.BorderThickness = new Thickness(0); |
|
- | 1734 | //} |
|
- | 1735 | //_wpIndex = dgvWP.SelectedIndex; |
|
- | 1736 | //row = (DataGridRow)dgvWP.ItemContainerGenerator.ContainerFromIndex(_wpIndex); |
|
- | 1737 | //row.Background = new SolidColorBrush(Color.FromArgb(80, 0, 100, 255)); |
|
- | 1738 | //row.BorderBrush = new SolidColorBrush(Colors.Aqua); |
|
- | 1739 | //row.BorderThickness = new Thickness(2); |
|
- | 1740 | //dgvWP.UpdateLayout(); |
|
- | 1741 | ||
1727 | { |
1742 | |
1728 | // Dispatcher.Invoke(() => |
1743 | // Dispatcher.Invoke(() => |
1729 | // { |
1744 | // { |
1730 | // if(data[48] < wpList.Count) |
1745 | // if(data[48] < wpList.Count) |
1731 | // { |
1746 | // { |
1732 | // DataGridRow row; |
1747 | // DataGridRow row; |
1733 | // if (data[48] > 0) |
1748 | // if (data[48] > 0) |
1734 | // { |
1749 | // { |
1735 | // row = (DataGridRow)dgvWP.ItemContainerGenerator.ContainerFromIndex(data[48] - 1); |
1750 | // row = (DataGridRow)dgvWP.ItemContainerGenerator.ContainerFromIndex(data[48] - 1); |
1736 | // row.Background = new SolidColorBrush(Colors.Transparent); |
1751 | // row.Background = new SolidColorBrush(Colors.Transparent); |
1737 | // } |
1752 | // } |
1738 | // row = (DataGridRow)dgvWP.ItemContainerGenerator.ContainerFromIndex(data[48]); |
1753 | // row = (DataGridRow)dgvWP.ItemContainerGenerator.ContainerFromIndex(data[48]); |
1739 | // row.Background = new SolidColorBrush(Color.FromArgb(50, 0, 100, 255)); |
1754 | // row.Background = new SolidColorBrush(Color.FromArgb(50, 0, 100, 255)); |
1740 | // } |
1755 | // } |
1741 | // }); |
1756 | // }); |
1742 | } |
1757 | } |
1743 | Dispatcher.Invoke((Action)(() => tbWPCount.Text = data[49].ToString())); //Waypoints count |
1758 | Dispatcher.Invoke((Action)(() => tbWPCount.Text = data[49].ToString())); //Waypoints count |
1744 | _wpCount = data[49]; |
1759 | _wpCount = data[49]; |
Line 3524... | Line 3539... | ||
3524 | { |
3539 | { |
3525 | if(_wpCount > 0) |
3540 | if(_wpCount > 0) |
3526 | _sendWayPoint(dtWaypoints.Rows[dgvWP.SelectedIndex],-1); |
3541 | _sendWayPoint(dtWaypoints.Rows[dgvWP.SelectedIndex],-1); |
3527 | else |
3542 | else |
3528 | _sendWayPoint(dtWaypoints.Rows[dgvWP.SelectedIndex],1); |
3543 | _sendWayPoint(dtWaypoints.Rows[dgvWP.SelectedIndex],1); |
- | 3544 | ||
- | 3545 | // if (data[48] > 0) |
|
- | 3546 | // { |
|
- | 3547 | // row = (DataGridRow)dgvWP.ItemContainerGenerator.ContainerFromIndex(dgvWP.SelectedIndex); |
|
- | 3548 | // row.Background = new SolidColorBrush(Colors.Transparent); |
|
- | 3549 | // } |
|
- | 3550 | Dispatcher.Invoke(() => { |
|
- | 3551 | DataGridRow row; |
|
- | 3552 | if (_wpIndex > -1) |
|
- | 3553 | { |
|
- | 3554 | row = (DataGridRow)dgvWP.ItemContainerGenerator.ContainerFromIndex(_wpIndex); |
|
- | 3555 | row.Background = new SolidColorBrush(Colors.Transparent); |
|
- | 3556 | row.BorderBrush = new SolidColorBrush(Colors.Transparent); |
|
- | 3557 | row.BorderThickness = new Thickness(0); |
|
- | 3558 | } |
|
- | 3559 | _wpIndex = dgvWP.SelectedIndex; |
|
- | 3560 | row = (DataGridRow)dgvWP.ItemContainerGenerator.ContainerFromIndex(_wpIndex); |
|
- | 3561 | row.Background = new SolidColorBrush(Color.FromArgb(80, 0, 100, 255)); |
|
- | 3562 | row.BorderBrush = new SolidColorBrush(Colors.Aqua); |
|
- | 3563 | row.BorderThickness = new Thickness(2); |
|
- | 3564 | dgvWP.UpdateLayout(); |
|
- | 3565 | }); |
|
3529 | } |
3566 | } |
3530 | } |
3567 | } |
Line 3531... | Line 3568... | ||
3531 | 3568 | ||
3532 | #endregion WP |
3569 | #endregion WP |