static void Main() { //this objects are always there doesen't matter if there is a client or an admin //Database database = new Database(); Database.connect(); User user=new User(); AuthentficationController authController=new AuthentficationController(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Login(user, authController)); }
public Login(User user, AuthentficationController authController) { InitializeComponent(); this.user = user; this.authController = authController; }
public Register(AuthentficationController authController) { this.authController = authController; InitializeComponent(); }