private void ctxtDownloadAndExecute_Click(object sender, EventArgs e) { if (lstClients.SelectedItems.Count != 0) { using (var frm = new frmDownloadAndExecute(lstClients.SelectedItems.Count)) { if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { foreach (ListViewItem lvi in lstClients.SelectedItems) { Client c = (Client)lvi.Tag; new Core.Packets.ServerPackets.DownloadAndExecute(DownloadAndExecute.URL, DownloadAndExecute.RunHidden).Execute(c); } } } } }
private void ctxtDownloadAndExecute_Click(object sender, EventArgs e) { if (lstClients.SelectedItems.Count != 0) { using (var frm = new frmDownloadAndExecute(lstClients.SelectedItems.Count)) { if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { foreach (ListViewItem lvi in lstClients.SelectedItems) { Client c = (Client)lvi.Tag; new Core.Packets.ServerPackets.DownloadAndExecute(DownloadAndExecute.URL, DownloadAndExecute.RunHidden).Execute(c); } } } } }