Пример #1
0
        public Dashboard()
        {
            InitializeComponent();

            usernameLabel.Content = GestaoHotel.getUsername();

            Router.Children.Add(new Home());
        }
Пример #2
0
        public bool checkLogin(string username, string password)
        {
            for (int i = 0; i < GestaoHotel.getAdmins().Count; i++)
            {
                if (GestaoHotel.getAdmins()[i].Username == username && password == GestaoHotel.getAdmins()[i].Password)
                {
                    GestaoHotel.userIDSession = GestaoHotel.getAdmins()[i].Id;
                    return(true);
                }
            }

            return(false);
        }
Пример #3
0
        public MainWindow()
        {
            GestaoHotel.preencher();

            InitializeComponent();
        }