private void TweenRestartMenuItem_Click(object sender, EventArgs e)
{
MyCommon._endingFlag = true;
try
{
this.Close();
Application.Restart();
}
catch (Exception)
{
MessageBox.Show("Failed to restart. Please run " + Application.ProductName + " manually.");
}
}