private void btnSnapPicture_Click(object sender, EventArgs e) { try { if (ics.IsConnectedToCentralServer) ics.UpdateProfilePicture(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }