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(); } }
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); } } } } }
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); } } } } }
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 }); } } } } }
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(); } }