Exemple #1
0
        private void bt_ingresar_Click(object sender, EventArgs e)
        {
            ModeloUsuario user       = new ModeloUsuario();
            var           validLogin = user.LoginUser(txt_correo.Text, txt_contrasenia.Text);

            if (validLogin == true)
            {
                bot_menu = new Form_menu_principal();
                bot_menu.Show();
                this.Hide();
                bot_menu.FormClosed += Logout;
            }
            else
            {
                lbl_error_data.Visible = true;
                txt_contrasenia.Clear();
                txt_correo.Clear();
            }
        }
Exemple #2
0
        private void Chatbot_menu_Load(object sender, EventArgs e)
        {
            loadUserdata();
            //Create objects

            _loggedUser = new ModeloUsuario();

            //Create Ayuda
            help = new Ayuda();

            //User control create
            _obj    = this;
            cb      = new Chatbot();
            cb.Dock = DockStyle.Fill;
            panel_principal.Controls.Add(cb);
            //Instanciacion inicial
            profile  = new Perfil_usuario();
            calendar = new Calendario();

            help.Visible     = false;
            profile.Visible  = false;
            calendar.Visible = false;
        }