Set a default value for time range filter minimum
This commit is contained in:
parent
7432e58b6a
commit
1a3146cf85
@ -25,7 +25,7 @@
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="28" />
|
||||
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
@ -72,7 +72,7 @@ namespace BreCalClient
|
||||
this.comboBoxAgencies.UnSelectAll();
|
||||
this.comboBoxBerths.UnSelectAll();
|
||||
this.comboBoxCategories.UnSelectAll();
|
||||
this.datePickerETAFrom.SelectedDate = null;
|
||||
this.datePickerETAFrom.SelectedDate = DateTime.Now.AddDays(-2);
|
||||
this.datePickerETATo.SelectedDate = null;
|
||||
this.textBoxSearch.Clear();
|
||||
this.upDownShiplengthFrom.Value = null;
|
||||
@ -107,7 +107,10 @@ namespace BreCalClient
|
||||
if (sfm.SearchString != null) this.textBoxSearch.Text = sfm.SearchString;
|
||||
this.upDownShiplengthFrom.Value = sfm.ShipLengthFrom;
|
||||
this.upDownShiplengthTo.Value = sfm.ShipLengthTo;
|
||||
this.datePickerETAFrom.SelectedDate = sfm.EtaFrom;
|
||||
if (sfm.EtaFrom != null)
|
||||
this.datePickerETAFrom.SelectedDate = sfm.EtaFrom;
|
||||
else
|
||||
this.datePickerETAFrom.SelectedDate = DateTime.Now.AddDays(-2);
|
||||
this.datePickerETATo.SelectedDate = sfm.EtaTo;
|
||||
this.checkBoxOwn.IsChecked = sfm.MineOnly;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user