private void TweenMain_FormClosing(object sender, FormClosingEventArgs e)
{
if (!this._cfgCommon.CloseToExit && e.CloseReason == CloseReason.UserClosing && MyCommon._endingFlag == false)
{
//_endingFlag=false:フォームの×ボタン
e.Cancel = true;
this.Visible = false;
}
else
{
_hookGlobalHotkey.UnregisterAllOriginalHotkey();
_ignoreConfigSave = true;
MyCommon._endingFlag = true;
TimerTimeline.Enabled = false;
TimerRefreshIcon.Enabled = false;
}
}