public void moveContactsToAFriend(localhostWebService.ContactDetails contact, string friendPhone)//כאשר לוחצים על הכפור יעבור המידע של אנשי הקשר שסומנו אל החברים שסומנו { localhostWebService.WebService service = new localhostWebService.WebService(); contact.userPhoneBelong = friendPhone; contact.status = "לאישור"; try { if(!service.IfContactExist(contact)) // מוסיפים איש קשר רק אם לא קיים { service.InsertContact(contact); } Label1.Text = "yaaay"; } catch (Exception ex) { throw ex; } }