private static void BeforeQueryStatusCallback(object sender, EventArgs e)
{
var that = (DynamicMenuCommand)sender;
that.Enabled = true;
that.Visible = true;
that.Text = that._getText(that.MatchedCommandId > 0 ? that.MatchedCommandId - that.CommandID.ID : 0);
//Clear this out here as we are done with it for this item.
that.MatchedCommandId = 0;
}