//обработчик события клиента
        public void AddClientsInfoToDGV(NetMessage data)
        {
            dt = data.dataToSend;
            if (dgvActiveClaims.InvokeRequired)
            {
                lwActiveClaimsDeleagate newDel = new lwActiveClaimsDeleagate(AddClaimsToDGV);
                this.Invoke(newDel, new object[] { data });
            }
            else
            {
                if (!usersDataRequest)
                {
                    Configuration.AddDataToDGV(dgvActiveClaims, data.dataToSend, true, "ClaimID", "ClaimID");
                    Configuration.PaintDGVCells(dgvActiveClaims, GetDGVColumnIndexToColorCells(dgvActiveClaims, "ClaimStatus"), dataToPaintDGV);

                    if (dgvActiveClaims.Rows.Count > 0)
                    {
                        dgvActiveClaims.Visible = true;
                        lNoActiveClaims.Visible = false;
                    }
                }
                else
                {
                    usersDataRequest = false;
                    usersData        = data.dataToSend;
                    for (int i = 0; i < usersData.Rows.Count; i++)
                    {
                        if (usersData.Rows[i]["PersFirstName"].ToString() == "Пользователь")
                        {
                            userID = Convert.ToInt32(usersData.Rows[i]["PersID"]);
                        }
                    }
                }
            }
        }
        //обработчик события сервера
        public void AddClaimsToDGV(NetMessage data)
        {
            if (dgvActiveClaims.InvokeRequired)
            {
                lwActiveClaimsDeleagate newDel = new lwActiveClaimsDeleagate(AddClaimsToDGV);
                this.Invoke(newDel, new object[] { data });
            }
            else
            {
                Configuration.AddDataToDGV(dgvActiveClaims, data.dataToSend, true, "ClaimID", "ClaimID");
                Configuration.PaintDGVCells(dgvActiveClaims, GetDGVColumnIndexToColorCells(dgvActiveClaims, "ClaimStatus"), dataToPaintDGV);

                if (dgvActiveClaims.Rows.Count > 0)
                {
                    dgvActiveClaims.Visible = true;
                    lNoActiveClaims.Visible = false;
                }
            }
        }