Skip to content

Commit

Permalink
- Fix JF17 point type resetting when double clicking data cell
Browse files Browse the repository at this point in the history
- Adds point type data for JF17 (WP) and F18C (WP) for unit importer
  • Loading branch information
FalcoGer committed Oct 3, 2023
1 parent c5e5e03 commit f81e05e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CoordinateConverter/DCS/Tools/FormUnitImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ private void Btn_Import_Click(object sender, EventArgs e)
GroundElevationInM = dcsCoord.Elevation
};

// Add the AH64 data
// Add aircraft specific data data
entry.AircraftSpecificData.Add(typeof(AH64), new AH64SpecificData(unit));
entry.AircraftSpecificData.Add(typeof(KA50), new KA50SpecificData(KA50.EPointType.TargetPoint));
entry.AircraftSpecificData.Add(typeof(JF17), new JF17SpecificData(JF17.EPointType.Waypoint));
entry.AircraftSpecificData.Add(typeof(F18C), new F18CSpecificData());
Coordinates.Add(entry);
}
}
Expand Down
4 changes: 1 addition & 3 deletions CoordinateConverter/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Drawing.Text;
using System.IO;
using System.Linq;
using System.Text;
Expand All @@ -20,7 +19,7 @@ namespace CoordinateConverter
/// <seealso cref="Form" />
public partial class MainForm : Form
{
private readonly GitHub.Version VERSION = new GitHub.Version(0, 5, 11);
private readonly GitHub.Version VERSION = new GitHub.Version(0, 5, 12);

private readonly Color ERROR_COLOR = Color.Pink;
private readonly Color DCS_ERROR_COLOR = Color.Yellow;
Expand Down Expand Up @@ -1454,7 +1453,6 @@ private void Dgv_CoordinateList_CellDoubleClick(object sender, DataGridViewCellE
if (e.RowIndex >= 0)
{
input = dataEntries.ElementAt(e.RowIndex).Clone(dataEntries.Count);
RefreshCoordinates(EUpdateType.Everything);
StartEdit(new List<int>() { e.RowIndex });
}
}
Expand Down

0 comments on commit f81e05e

Please sign in to comment.