public void checkAuthorization(string login, string password)
        {
            avtorization = client.UserAuthorization(login, password);

            if (avtorization != -1)
            {
                MessageBox.Show("You authorised");
                mainWindow.setUserId(avtorization);
            }
            else
            {
                MessageBox.Show("Wrong login or password");
            }
        }