private void btnCopy_Click(object sender, EventArgs e) { frmTarget target = new frmTarget(ModelClient); if (target.ShowDialog(this) == DialogResult.OK) { HttpStatusCode Result = ModelClient.Copy(ModelId, Selected_Target_Folder); if (Result == HttpStatusCode.OK) { MessageBox.Show("File has copied to..."); } } }