Skip to content

Commit

Permalink
1.84_0.19_1
Browse files Browse the repository at this point in the history
   * fix invalid cast from EDCommoditiesExt to int (thx to zericco)
   * test: changes to sorting of datevalues in Commanders Log
  • Loading branch information
Duke-Jones committed May 4, 2015
1 parent c007fbe commit a55075c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RegulatedNoise/CommandersLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public string CreateEvent()
CargoAction =_callingForm.cbCargoModifier.Text,
CargoVolume =int.Parse(_callingForm.cbLogQuantity.Text),
Notes =_callingForm.tbLogNotes.Text,
EventDate =DateTime.Parse(_callingForm.dtpLogEventDate.Text),
EventDate =DateTime.Parse(_callingForm.dtpLogEventDate.Text, CultureInfo.CurrentUICulture , DateTimeStyles.None),
EventID = newEventID
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System.Collections;
using System.Windows.Forms;
using System.Diagnostics;
using System;
using System;
using System.Globalization;

/// <summary>
/// This class is an implementation of the 'IComparer' interface.
Expand Down Expand Up @@ -150,8 +151,8 @@ public int Compare(object x, object y)
{
case 0:
DateTime Date_a = DateTime.MinValue, Date_b = DateTime.MinValue;
DateTime.TryParse(listviewX.SubItems[ColumnToSort].Text, out Date_a);
DateTime.TryParse(listviewY.SubItems[ColumnToSort].Text, out Date_b);
DateTime.TryParse(listviewX.SubItems[ColumnToSort].Text, CultureInfo.CurrentUICulture , DateTimeStyles.None, out Date_a);
DateTime.TryParse(listviewY.SubItems[ColumnToSort].Text, CultureInfo.CurrentUICulture , DateTimeStyles.None, out Date_b);
compareResult = ObjectCompare.Compare(Date_a, Date_b);
break;
case 1:
Expand Down
24 changes: 24 additions & 0 deletions RegulatedNoise/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a55075c

Please sign in to comment.