public void sqladdfile() { // use sql management to confirm that the file was added sqlLogin(); Assert.True(client.AddOwnership("Testuser", "testpic.jpg")); }
private void downloadButton_Click(object sender, EventArgs e) { ListViewItem i = viewer.SelectedItems[0]; string file = i.Text; FileDialog fdialog = new SaveFileDialog(); if (fdialog.ShowDialog() == DialogResult.OK) { client.requestFile(file, fdialog.FileName); client.AddOwnership(client.username, file); } }