private void view(object sender, RoutedEventArgs e)
        {
            mainDal m = new mainDal();
            user    u = m.getDetail(name);

            MessageBox.Show("Name: " + u.Name + "\n Password:"******"\nEmail:" + u.Email + "\n Designation:" + u.Designation);
        }