38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using PaymentLogs.Domain;
|
|
using PaymentLogs.Repositories;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace PaymentLogs
|
|
{
|
|
internal static class Program
|
|
{
|
|
internal static User CurrentUser { get; set; }
|
|
internal static UserRepo UserRepository { get; set; }
|
|
internal static PaymentRepo PaymentRepository { get; set; }
|
|
internal static CourseRepo CourseRepository { get; set; }
|
|
internal static StudentRepo StudentRepository { get; set; }
|
|
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
UserRepository = new UserRepo();
|
|
UserRepository.Load();
|
|
PaymentRepository = new PaymentRepo();
|
|
PaymentRepository.Load();
|
|
CourseRepository = new CourseRepo();
|
|
CourseRepository.Load();
|
|
StudentRepository = new StudentRepo();
|
|
StudentRepository.Load();
|
|
|
|
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.Run(new LoginForm());
|
|
}
|
|
}
|
|
}
|