private void EndToolStripMenuItem_Click(object sender, EventArgs e) { MyCommon._endingFlag = true; this.Close(); }