コード例 #1
0
        public FrmClassesManagement()
        {
            InitializeComponent();

            db = new DbAndBusiness(Commons.PathAndFileDatabase);
            bl = new BusinessLayer(Commons.PathAndFileDatabase);
        }
コード例 #2
0
        public frmStartLinksManagement(Class CurrentClass)
        {
            InitializeComponent();

            db = new DbAndBusiness(Commons.PathAndFileDatabase);
            bl = new BusinessLayer(Commons.PathAndFileDatabase);

            currentClass = CurrentClass;
        }
コード例 #3
0
        public frmNewYear(string IdStartYear)
        {
            InitializeComponent();

            db = new DbAndBusiness(Commons.PathAndFileDatabase);
            bl = new BusinessLayer(Commons.PathAndFileDatabase);

            idStartYear = IdStartYear;
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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");
        }
コード例 #6
0
 public frmUsersManagement()
 {
     InitializeComponent();
     bl = new BusinessLayer(Commons.PathAndFileDatabase);
 }