private void shareOnFacebookMenuItem_Click(object sender, EventArgs e) { facebookShare shareForm = new facebookShare(targetObject ?? getTarget()); shareForm.ShowDialog(); }