Ejemplo n.º 1
0
        static void Main()
        {
            // Start the DB Manager
            DataBaseManager dbManager    = new DataBaseManager("Data Source = ../../PICKDataBase.db; Version = 3; New = True; Compress = True; ");
            StateManager    stateManager = new StateManager(dbManager);



            //stateManager.setUserName("admin");
            Application.Run(new SplashPage(dbManager, stateManager));

            //debug stuff
            ////stateManager.setUserName("admin", "password");
            ////Application.Run(new ChooseTrainerPage(dbManager, stateManager));
        }
Ejemplo n.º 2
0
 /**
  * Constructor
  */
 public LoginPage(DataBaseManager dbManager, StateManager stateManager)
 {
     InitializeComponent();
     this.dbManager    = dbManager;
     this.stateManager = stateManager;
 }
Ejemplo n.º 3
0
 /**
  * Consltructor
  * */
 public UserDashBoard(DataBaseManager dbManager, StateManager sManager)
 {
     InitializeComponent();
     databaseManager = dbManager;
     stateManager    = sManager;
 }