private void KeysList_SelectionChanged(object sender, EventArgs e)
 {
     if (KeysList.SelectedCells.Count > 0)
     {
         KeyInfoDisplay.SetKey(RSAEncryptor.keys[KeysList.SelectedCells[0].RowIndex]);
         KeyInfoDisplay.DisplayKeyInfo(true);
     }
     else
     {
         KeyInfoDisplay.DisplayKeyInfo(false);
     }
 }
        public void KeysTab_Load()
        {
            instance = this;

            KeysList.AllowUserToAddRows            = false;
            KeysList.AdvancedCellBorderStyle.Left  = DataGridViewAdvancedCellBorderStyle.None;
            KeysList.AdvancedCellBorderStyle.Right = DataGridViewAdvancedCellBorderStyle.None;

            UpdateKeysList();
            ResizeTexts();
            KeyInfoDisplay.DisplayKeyInfo(false);
        }