byte[] GetNewKey()
        {
            KeyManagerUIForm form = new KeyManagerUIForm();

            try
            {
                form.ShowDialog();
                return(form.priKey);
            }
            catch (NullReferenceException null_ex)
            {
                MessageBox.Show("No key was generated!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(null);
            }
        }
        private void OnMenuDoSomething(object sender, EventArgs e)
        {
            KeyManagerUIForm form = new KeyManagerUIForm();

            form.Show();
        }