private void buttonLogin_Click(object sender, EventArgs e)
 {
     if (textBoxPassLogin.BackColor == Color.Honeydew)
     {
         if (VotingsUser.Login(textBoxPassLogin.Text))
         {
             SuccsessLogin?.Invoke(this, new EventArgs());
             Hide();
         }
     }
 }
        private void buttonRegister_Click(object sender, EventArgs e)
        {
            if (textBoxPublicKeyRegister.BackColor == Color.Honeydew &&
                textBoxPrivateKeyRegister.BackColor == Color.Honeydew &&
                textBoxPasswordRegister.BackColor == Color.Honeydew)
            {
                VotingsUser.ClearUserData();
                VotingsUser.Register(textBoxPublicKeyRegister.Text, textBoxPrivateKeyRegister.Text, textBoxPasswordRegister.Text);
                VotingsUser.GetKeysFromConfig();

                if (VotingsUser.Login(textBoxPasswordRegister.Text))
                {
                    SuccsessLogin?.Invoke(this, new EventArgs());
                    Hide();
                }
            }
        }