private void btnUpload_Click(object sender, EventArgs e) { if (dlgUploadModel.ShowDialog() == DialogResult.OK) { string FilePath = dlgUploadModel.FileName; Model result = ModelClient.Create(FilePath); updateFileList(null); } }