private void btn_delete_Click(object sender, RoutedEventArgs e)
        {
            int  id   = int.Parse(txt_id.Text);
            bool flag = db.tlogins.Where(x => x.id == id).Any();

            if (flag)
            {
                tbl = db.tlogins.Where(x => x.id == id).First();
                db.tlogins.Remove(tbl);
                db.SaveChanges();
                //cargar();
                MessageBox.Show("¡Datos fueron eliminados...!");
            }
            else
            {
                MessageBox.Show("¡ID no valido, Intente de nuevo ...!");
            }
        }
        private void btn_update_Click(object sender, RoutedEventArgs e)
        {
            int  id   = int.Parse(txt_id.Text);
            bool flag = db.tlogins.Where(x => x.id == id).Any();

            if (flag)
            {
                tbl          = db.tlogins.Where(x => x.id == id).First();
                tbl.username = txt_username.Text;
                tbl.password = txt_password.Password;
                db.SaveChanges();
                cargar();
                MessageBox.Show("¡Datos actualizados ...!");
            }
            else
            {
                MessageBox.Show("¡ID no valido, Intente de nuevo ...!");
            }
        }