Example #1
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();
     }
 }
Example #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);
                 }
             }
         }
     }
 }
Example #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);
                 }
             }
         }
     }
 }
Example #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
                     });
                 }
             }
         }
     }
 }
Example #5
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);
                 }
             }
         }
     }
 }
Example #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();
     }
 }