private void SendButton_Click(object sender, EventArgs e)
        {
            string ip = maskedTextBoxIPVisitors.Text;


            string message;

            if (DirectionLR.Checked)
            {
                message = numericUpDownKameraId.Value + LR.ToString() + ";" + RL.ToString();
            }                                                                                //to musi byc zmienione na id kamery + weszlo ; wyszlo
            else
            {
                message = numericUpDownKameraId.Value + RL.ToString() + ";" + LR.ToString();
            }


            int port = Decimal.ToInt32(numericUpDownPortVisitors.Value);

            if (TCPCon.MainFunction(ip, port, message) == 1)
            {
                tbConsole.AppendText("\r\n" + ActualData() + ": Poprawnie przesłano liczbę osób na adres: " + ip);
            }
            else
            {
                tbConsole.AppendText("\r\n" + ActualData() + ": Brak sluchacza na tym porcie lub na tym adresie IP");
            }
        }