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