Ejemplo n.º 1
0
 public int searchResult(string searchkey)
 {
     SearchPeople sp = new SearchPeople(name, uname);
     int rows = 0;
     rows = sp.nameCheck(searchkey);
     return rows;
 }
Ejemplo n.º 2
0
        public string[] peopleDisplay(string searchkey,int flag)
        {
            SearchPeople sp = new SearchPeople(name, uname);
            int rows = 0;
            rows=searchResult(searchkey);

            if (rows != 0)
            {
                if (flag == 1)
                {
                    return name = sp.showingData(searchkey, flag);
                }

                else
                {
                    return uname = sp.showingData(searchkey, flag);
                }
            }

            else
            {
                MessageBox.Show("No Person Found!!!");
                return null;
            }
        }