示例#1
0
文件: FrmMain.cs 项目: yhz9999/xRAT
 private void ctxtShowMessagebox_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         Client c = (Client)lstClients.SelectedItems[0].Tag;
         if (c.Value.FrmSm != null)
         {
             c.Value.FrmSm.Focus();
             return;
         }
         FrmShowMessagebox frmSM = new FrmShowMessagebox(c);
         frmSM.Show();
     }
 }
示例#2
0
 private void ctxtShowMessagebox_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmShowMessagebox(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     new Core.Packets.ServerPackets.DoShowMessageBox(
                         MessageBoxData.Caption, MessageBoxData.Text, MessageBoxData.Button, MessageBoxData.Icon).Execute(c);
                 }
             }
         }
     }
 }
示例#3
0
 private void showMessageboxToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmShowMessagebox(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     QuasarServer.writeLog("Showing Message Box with message \"" + Messagebox.Text + "\"", c.Value.PCName);
                     new Core.Packets.ServerPackets.DoShowMessageBox(
                         Messagebox.Caption, Messagebox.Text, Messagebox.Button, Messagebox.Icon).Execute(c);
                 }
             }
         }
     }
 }
示例#4
0
 private void showMessageboxToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmShowMessagebox(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     c.Send(new DoShowMessageBox
                     {
                         Caption = frm.MsgBoxCaption,
                         Text    = frm.MsgBoxText,
                         Button  = frm.MsgBoxButton,
                         Icon    = frm.MsgBoxIcon
                     });
                 }
             }
         }
     }
 }
示例#5
0
文件: FrmMain.cs 项目: Nusec/xRAT
 private void ctxtShowMessagebox_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         using (var frm = new FrmShowMessagebox(lstClients.SelectedItems.Count))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 foreach (Client c in GetSelectedClients())
                 {
                     new Core.Packets.ServerPackets.DoShowMessageBox(
                         MessageBoxData.Caption, MessageBoxData.Text, MessageBoxData.Button, MessageBoxData.Icon).Execute(c);
                 }
             }
         }
     }
 }
示例#6
0
 private void ctxtShowMessagebox_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         Client c = (Client) lstClients.SelectedItems[0].Tag;
         if (c.Value.FrmSm != null)
         {
             c.Value.FrmSm.Focus();
             return;
         }
         FrmShowMessagebox frmSM = new FrmShowMessagebox(c);
         frmSM.Show();
     }
 }