Example #1
0
        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));
        }
Example #2
0
 public Login(User user, AuthentficationController authController)
 {
     InitializeComponent();
     this.user = user;
     this.authController = authController;
 }
Example #3
0
 public Register(AuthentficationController authController)
 {
     this.authController = authController;
     InitializeComponent();
 }