public void RemoveSelfAvatar() { try { _selfAvatar = null; string filename = GetAvatarFilename(_tox.Id.PublicKey.ToString()); if (File.Exists(filename)) { File.Delete(filename); } foreach (int friend in _tox.Friends) { if (_tox.IsFriendOnline(friend)) { ProfileManager.Instance.TransferManager.SendAvatar(friend, null); } } } catch { } }