diff --git a/ViewModels/Basic/InspectionViewModel.cs b/ViewModels/Basic/InspectionViewModel.cs index 1a18eea..5f067e2 100644 --- a/ViewModels/Basic/InspectionViewModel.cs +++ b/ViewModels/Basic/InspectionViewModel.cs @@ -66,6 +66,8 @@ public partial class InspectionViewModel : ViewModelBase { Inspection.Name = Name; Inspection.CreationDate = CreationDate; + if (InspectionDate.Year > 2500) + InspectionDate = DateTimeOffset.Now; Inspection.InspectionDate = InspectionDate; Inspection.PeriodType = PeriodType.ToDescription(); Inspection.PeriodValue = PeriodValue; diff --git a/Views/InspectionView.axaml b/Views/InspectionView.axaml index 20a7939..4c425a0 100644 --- a/Views/InspectionView.axaml +++ b/Views/InspectionView.axaml @@ -32,7 +32,7 @@ - diff --git a/obj/Debug/net8.0/Avalonia/resources b/obj/Debug/net8.0/Avalonia/resources index 6fea364..15ba660 100644 Binary files a/obj/Debug/net8.0/Avalonia/resources and b/obj/Debug/net8.0/Avalonia/resources differ diff --git a/obj/Debug/net8.0/GazpromApp.AssemblyInfo.cs b/obj/Debug/net8.0/GazpromApp.AssemblyInfo.cs index df49297..eac2104 100644 --- a/obj/Debug/net8.0/GazpromApp.AssemblyInfo.cs +++ b/obj/Debug/net8.0/GazpromApp.AssemblyInfo.cs @@ -7,15 +7,16 @@ // //------------------------------------------------------------------------------ +using System; using System.Reflection; -[assembly: AssemblyCompany("GazpromApp")] -[assembly: AssemblyConfiguration("Debug")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: AssemblyInformationalVersion("1.0.0+edae732facddad296bc2957b70d69e109c8df0dc")] -[assembly: AssemblyProduct("GazpromApp")] -[assembly: AssemblyTitle("GazpromApp")] -[assembly: AssemblyVersion("1.0.0.0")] +[assembly: System.Reflection.AssemblyCompanyAttribute("GazpromApp")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+08eaa30209fb07132671006392af33044278fb88")] +[assembly: System.Reflection.AssemblyProductAttribute("GazpromApp")] +[assembly: System.Reflection.AssemblyTitleAttribute("GazpromApp")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] // Generated by the MSBuild WriteCodeFragment class. diff --git a/obj/Debug/net8.0/GazpromApp.AssemblyInfoInputs.cache b/obj/Debug/net8.0/GazpromApp.AssemblyInfoInputs.cache index d806021..e895b48 100644 --- a/obj/Debug/net8.0/GazpromApp.AssemblyInfoInputs.cache +++ b/obj/Debug/net8.0/GazpromApp.AssemblyInfoInputs.cache @@ -1 +1 @@ -d5e1f758b4af1a11eec5b0ef10074d2fa0359670b43f632e44e63e702c71cb03 +991b92f7461b0b0cb8dff258086ca1dd3fd0a9b1938281c5774aefca5ef9edfc