public FrmClassesManagement() { InitializeComponent(); db = new DbAndBusiness(Commons.PathAndFileDatabase); bl = new BusinessLayer(Commons.PathAndFileDatabase); }
public frmStartLinksManagement(Class CurrentClass) { InitializeComponent(); db = new DbAndBusiness(Commons.PathAndFileDatabase); bl = new BusinessLayer(Commons.PathAndFileDatabase); currentClass = CurrentClass; }
public frmNewYear(string IdStartYear) { InitializeComponent(); db = new DbAndBusiness(Commons.PathAndFileDatabase); bl = new BusinessLayer(Commons.PathAndFileDatabase); idStartYear = IdStartYear; }
public frmBackupManagement() { InitializeComponent(); db = new DbAndBusiness(Commons.PathAndFileDatabase); bl = new BusinessLayer(Commons.PathAndFileDatabase); TreeMpttDb dbMptt = new TreeMpttDb(db); topicTreeMptt = new TreeMptt(db, null, null, null, null, null, null, null, DragDropEffects.None); }
private void frmLogin_Load(object sender, EventArgs e) { db = new DbAndBusiness(Commons.PathAndFileDatabase); bl = new BusinessLayer(db.DatabaseName); // test examples User u; u = new User("pippo", "pluto"); //u = new User("pina", "pluto"); ////u = new User("ugo", "pina"); //bl.CreateUser(u); u.Password = "******"; bl.ChangePassword(u); u.FirstName = "Ugo"; u.LastName = "Fantozzi"; u.Email = "*****@*****.**"; u.Description = "Inferiore Rag. Ugo Fantozzi"; bl.UpdateUser(u); User u1 = bl.GetUser("ugo"); }
public frmUsersManagement() { InitializeComponent(); bl = new BusinessLayer(Commons.PathAndFileDatabase); }