diff --git a/BankYouBankrupt/BankYouBankrupt/BankYouBankruptView.csproj b/BankYouBankrupt/BankYouBankrupt/BankYouBankruptView.csproj index b57c89e..377ee20 100644 --- a/BankYouBankrupt/BankYouBankrupt/BankYouBankruptView.csproj +++ b/BankYouBankrupt/BankYouBankrupt/BankYouBankruptView.csproj @@ -8,4 +8,20 @@ enable + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + \ No newline at end of file diff --git a/BankYouBankrupt/BankYouBankrupt/Program.cs b/BankYouBankrupt/BankYouBankrupt/Program.cs index 0556107..14b3280 100644 --- a/BankYouBankrupt/BankYouBankrupt/Program.cs +++ b/BankYouBankrupt/BankYouBankrupt/Program.cs @@ -1,19 +1,40 @@ using BankYouBankrupt; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using NLog.Extensions.Logging; +using BankYouBankruptDatabaseImplement.Models; +using System; namespace BankYouBankruptView { internal static class Program { + private static ServiceProvider? _serviceProvider; + + public static ServiceProvider? ServiceProvider => _serviceProvider; + /// /// The main entry point for the application. /// [STAThread] static void Main() { - // To customize application configuration such as set high DPI settings or default font, + // To customize application configuration such as set high DPI settings or default font; // see https://aka.ms/applicationconfiguration. ApplicationConfiguration.Initialize(); - Application.Run(new Form1()); + var services = new ServiceCollection(); + ConfigureServices(services); + _serviceProvider = services.BuildServiceProvider(); + Application.Run(_serviceProvider.GetRequiredService()); + } + + private static void ConfigureServices(ServiceCollection services) + { + services.AddLogging(option => + { + option.SetMinimumLevel(LogLevel.Information); + option.AddNLog("nlog.config"); + }); } } } \ No newline at end of file diff --git a/BankYouBankrupt/BankYouBankruptDatabaseImplement/Implements/CardStorage.cs b/BankYouBankrupt/BankYouBankruptDatabaseImplement/Implements/CardStorage.cs new file mode 100644 index 0000000..19ce171 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptDatabaseImplement/Implements/CardStorage.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankYouBankruptDatabaseImplement.Implements +{ + public class CardStorage + { + } +} diff --git a/BankYouBankrupt/BankYouBankruptDatabaseImplement/Implements/ClientStorage.cs b/BankYouBankrupt/BankYouBankruptDatabaseImplement/Implements/ClientStorage.cs new file mode 100644 index 0000000..75e05d2 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptDatabaseImplement/Implements/ClientStorage.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankYouBankruptDatabaseImplement.Implements +{ + public class ClientStorage + { + } +}