예제 #1
0
        private void btn_del_Click(object sender, EventArgs e)
        {
            bool DelCon;
            bool DelConR;

            Contacts.Service1 s = new Contacts.Service1();
            s.DeleteContact(txtId.Text, out DelCon, out DelConR);

            BindingSource bs = new BindingSource();

            bs.DataSource    = s.GetCon();
            gvCon.DataSource = bs;

            lblmsg.Text = "Successfully Deleted";
        }