While doing so, I have also refactored the shipcall processing logic in the main window. All changes now go through the filter and sorting stage before all controls are removed and only the controls matching to the sorted list are added to the stack panel.
37 lines
769 B
C#
37 lines
769 B
C#
// Copyright (c) 2023 schick Informatik
|
|
// Description: Data model for search filters
|
|
//
|
|
|
|
using BreCalClient.misc.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace BreCalClient
|
|
{
|
|
internal class SearchFilterModel
|
|
{
|
|
public SearchFilterModel() { }
|
|
|
|
#region Properties
|
|
|
|
public DateTime? EtaFrom { get; set; }
|
|
|
|
public DateTime? EtaTo { get; set; }
|
|
|
|
public List<int> Categories { get; set; } = new();
|
|
|
|
public List<int> Agencies { get; set; } = new();
|
|
|
|
public List<int> Berths { get; set; } = new();
|
|
|
|
public string? SearchString { get; set; }
|
|
|
|
public double? ShipLengthFrom { get; set; }
|
|
|
|
public double? ShipLengthTo { get; set; }
|
|
|
|
#endregion
|
|
|
|
}
|
|
}
|