private void avatarBoxClick(object sender, EventArgs e) { if (OnProfileImageClick != null) { OnProfileImageClick.Invoke(sender, e); } else { OnClick?.Invoke(this, EventArgs.Empty); } }
private void pictureBox1_Click_1(object sender, EventArgs e) { if (OnProfileImageClick != null) { OnProfileImageClick.Invoke(sender, e); } else { OnClick?.Invoke(this, EventArgs.Empty); } }