работает

This commit is contained in:
ityurner02@mail.ru 2023-04-28 21:47:01 +04:00
parent a150273330
commit f19965f37b
4 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ namespace PlumbingRepair
Id = _id ?? 0,
StoreName = NameTextBox.Text,
StoreAdress = AdressTextBox.Text,
OpeningDate = OpeningDatePicker.Value.Date,
OpeningDate = DateTime.SpecifyKind(OpeningDatePicker.Value.Date, DateTimeKind.Utc),
WorkMaxCount = (int)VolumeNumericUpDown.Value,
StoreWorks = _listStores
};

View File

@ -24,7 +24,7 @@ namespace PlumbingRepair
ApplicationConfiguration.Initialize();
var services = new ServiceCollection();
ConfigureServices(services);
_serviceProvider = services.BuildServiceProvider();
_serviceProvider = services.BuildServiceProvider();
Application.Run(_serviceProvider.GetRequiredService<FormMain>());
}
private static void ConfigureServices(ServiceCollection services)

View File

@ -7,7 +7,7 @@ namespace PlumbingRepairContracts.BindingModels
public string StoreName { get; set; } = string.Empty;
public string StoreAdress { get; set; } = string.Empty;
public DateTime OpeningDate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public DateTime OpeningDate { get; set; }
public Dictionary<int, (IWorkModel, int)> StoreWorks { get; set; } = new();

View File

@ -13,7 +13,7 @@ namespace PlumbingRepairContracts.ViewModels
[DisplayName("Адрес магазина")]
public string StoreAdress { get; set; } = string.Empty;
[DisplayName("Дата открытия")]
public DateTime OpeningDate { get; set; } = DateTime.Now;
public DateTime OpeningDate { get; set; }
[DisplayName("Вместимость магазина")]
public int WorkMaxCount { get; set; }
}