private void closeToolStripMenuItem_Click(object sender, EventArgs e) { if (this.ActiveDocument != null) { FileCommands.Close(this.ActiveDocument); } }
void closeContextMenuItem_Click(object sender, EventArgs e) { FileCommands.Close(this.parent); }