Exemplo n.º 1
0
        public Users(Login.Us var)
        {
            InitializeComponent();
            db.Database.Connection.ConnectionString = Connect.ConnectionString;
            l   = var.login;
            sec = db.SECs
                  .FirstOrDefault(p => p.login == l);
            var t = db.Types
                    .FirstOrDefault(p => p.id == sec.type);

            type          = t.name;
            login.Content = type + " " + sec.name;
            updateInfoSEC();
            updatePavilion();
        }
Exemplo n.º 2
0
 public Admin(Login.Us var)
 {
     InitializeComponent();
     db.Database.Connection.ConnectionString = Connect.ConnectionString;
     login.Content = var.login;
 }