private void onToolStripMenuItem_Click(object sender, EventArgs e) { var obj = ContextTarget as ISpyControl; if (obj!=null) obj.Enable(); }