void miChangeIcon_Click(object sender, EventArgs e) { LocalVariable lv = this.ClassPointer as LocalVariable; Image img = DesignUtil.ChangeTypeIcon(lv.ObjectType, IconImage, this.FindForm()); if (img != null) { SetIconImage(img); Refresh(); } }