private void _hookGlobalHotkey_HotkeyPressed(object sender, KeyEventArgs e)
{
if ((this.WindowState == FormWindowState.Normal || this.WindowState == FormWindowState.Maximized) && this.Visible && Form.ActiveForm == this)
{
//アイコン化
this.Visible = false;
}
else if (Form.ActiveForm == null)
{
this.Visible = true;
if (this.WindowState == FormWindowState.Minimized) this.WindowState = FormWindowState.Normal;
this.Activate();
this.BringToFront();
this.StatusText.Focus();
}
}