Ejemplo n.º 1
0
 private void btnUpload_Click(object sender, EventArgs e)
 {
     try
     {
         ServerManager.UploadFiles(dropped);
         dropped.Clear();
         lstFileToUpload.Items.Clear();
         lstBoxFile.DataSource = ServerManager.ReceiveDirectory();
     }
     catch (ArgumentException ex)
     {
         MetroFramework.MetroMessageBox.Show(this, "\n\n" + ex.Message, "Errore", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     catch (System.IO.IOException)
     {
         MetroFramework.MetroMessageBox.Show(this, "\n\n" + "Impossibile contattare il server", "Errore", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }