private void OKButton_Click(object sender, EventArgs e) { XSharpMLEPropertyForm form = (XSharpMLEPropertyForm)sender; form.Close(); }