private void invertVisibilityToolStripMenuItem_Click(object sender, EventArgs e) { this.updating = true; foreach (Item p in this.GetCurrent().Items) p.IsVisible = !p.IsVisible; this.updating = false; this.UpdateControls(); }