public void pressExecutor(object sender, EventArgs e) { CreateForm createForm = createFormView as CreateForm; createForm.Close(); }