Rev 2437 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2437 | Rev 2440 | ||
---|---|---|---|
Line 4804... | Line 4804... | ||
4804 | { |
4804 | { |
4805 | row.Background = new SolidColorBrush(Color.FromArgb(80, 0, 100, 255)); |
4805 | row.Background = new SolidColorBrush(Color.FromArgb(80, 0, 100, 255)); |
4806 | row.BorderBrush = new SolidColorBrush(Colors.Aqua); |
4806 | row.BorderBrush = new SolidColorBrush(Colors.Aqua); |
4807 | row.BorderThickness = new Thickness(2); |
4807 | row.BorderThickness = new Thickness(2); |
4808 | dgvWP.UpdateLayout(); |
4808 | dgvWP.UpdateLayout(); |
4809 | if (GridWPEdit.Visibility == Visibility.Collapsed && _bAutoWPEdit) |
- | |
4810 | GridWPEdit.Visibility = Visibility.Visible; |
- | |
4811 | - | ||
4812 | _setWPEditFields(_wpEdit); |
- | |
4813 | } |
4809 | } |
- | 4810 | if (GridWPEdit.Visibility == Visibility.Collapsed && _bAutoWPEdit) |
|
- | 4811 | GridWPEdit.Visibility = Visibility.Visible; |
|
- | 4812 | ||
- | 4813 | _setWPEditFields(_wpEdit); |
|
4814 | }); |
4814 | }); |
4815 | } |
4815 | } |
4816 | } |
4816 | } |
4817 | void _setWPEditFields(int index) |
4817 | void _setWPEditFields(int index) |
4818 | { |
4818 | { |
- | 4819 | if (GridWPEdit.Visibility == Visibility.Collapsed && _bAutoWPEdit) |
|
- | 4820 | GridWPEdit.Visibility = Visibility.Visible; |
|
- | 4821 | ||
4819 | int iVal; |
4822 | int iVal; |
4820 | lblWPEditIndex.Content = dtWaypoints.Rows[index][0].ToString(); |
4823 | lblWPEditIndex.Content = dtWaypoints.Rows[index][0].ToString(); |
4821 | cbWPEditType.SelectedIndex = (int)dtWaypoints.Rows[index][1]; |
4824 | cbWPEditType.SelectedIndex = (int)dtWaypoints.Rows[index][1]; |
4822 | tbWPEditPrefix.Text = dtWaypoints.Rows[index][2].ToString().Substring(0,1); |
4825 | tbWPEditPrefix.Text = dtWaypoints.Rows[index][2].ToString().Substring(0,1); |
4823 | tbWPEditLat.Text = dtWaypoints.Rows[index][3].ToString(); |
4826 | tbWPEditLat.Text = dtWaypoints.Rows[index][3].ToString(); |