void enterApp() { string user = user_inp.Text; string pass = pass_inp.Password; bool valider = false; valider = db.dbEnterValider(user, pass); List <string> sessionData = db.sessionDataSource(user, pass); DateTime date = DateTime.Now; if (valider == true && user != "Felhasználónév" && user != null && pass != "Jelszó" && pass != null) { session.UserData = sessionData; db.update_User_Last_LogDate(sessionData[1], date.ToString()); mainGrid.Children.Clear(); mainGrid.Children.Add(mainpage = new mainpage(mainGrid)); } else { bool conn = db.dbConncetionValider(); if (conn == true) { info_out.Text = db.langWordList(db.languageAsker())[76]; pc.idozito(info_out); } else { connectionValider(); } } }