private void SquashCommitToolStripMenuItemClick(object sender, EventArgs e) { if (Revisions.RowCount <= LastRowIndex || LastRowIndex < 0) return; UICommands.StartSquashCommitDialog(this, GetRevision(LastRowIndex)); }