예제 #1
0
        private void btnAddFriend_Click(object sender, EventArgs e)
        {
            var index       = FriendsGridView.CurrentCell.RowIndex;
            var selectedRow = FriendsGridView.Rows[index];
            var a           = Convert.ToInt64(selectedRow.Cells["ID"].Value);
            var friendsLink = new WCFService.FriendTable
            {
                idOne = a,
                idTwo = _dataStorage.UserId
            };

            _service.CreateFriendsLink(a, _dataStorage.UserId);
            btnSeeFriends_Click(sender, e);
        }