Ejemplo n.º 1
0
        private void btnsearch_Click(object sender, EventArgs e)
        {
            if (isDetail)
            {

            }
            else
            {
                if (txtbName.Text != "")
                {
                    thingsNeedSearch.Add(Tuple.Create("familyName", txtbName.Text));
                }
                //else
                //{
                //    thingsNeedSearch.Add(Tuple.Create("familyName", "1+1"));
                //}
                if (txtbSuburb.Text != "")
                {
                    thingsNeedSearch.Add(Tuple.Create("suburb", txtbSuburb.Text));
                }
                //else
                //{
                //    thingsNeedSearch.Add(Tuple.Create("suburb", "1+1"));
                //}
                if (txtbAddress.Text != "")
                {
                    thingsNeedSearch.Add(Tuple.Create("address", txtbAddress.Text));
                }
                //else
                //{
                //    thingsNeedSearch.Add(Tuple.Create("address", "1+1"));
                //}
            }
                ddos.openConnection();
                va = new ViewAll(ddos.Search(thingsNeedSearch));
                thingsNeedSearch.Clear();
                va.Show();
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     va = new ViewAll();
     va.Activate();
     va.Show();
 }