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) { Client c = (Client) lstClients.SelectedItems[0].Tag; if (c.Value.FrmSm != null) { c.Value.FrmSm.Focus(); return; } FrmShowMessagebox frmSM = new FrmShowMessagebox(c); frmSM.Show(); } }