private void addSendFileTile(SendFileService service) { SendFileTile tile = new SendFileTile(); tile.Service = service; this.sendFlowLayout.Controls.Add(tile); Home_Resize(null, null); }
private void sendFileButton_Click(object sender, EventArgs e) { DialogResult result = sendFileDialog.ShowDialog(this); if (result == DialogResult.OK) { String filePath = sendFileDialog.FileName; SendFileService service = new SendFileService(filePath); addSendFileTile(service); } }