List Tools on Custom Dashboard Form

I pulled the following code from a previous post (from 2017):

var obj= TimeExpenseForm.GetType().InvokeMember("baseToolbarsManager", BindingFlags.Instance | BindingFlags.GetField | BindingFlags.NonPublic, null, TimeExpenseForm, null);
var tools = (Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)obj;

string toolnames = "";
forearch(var t in tools.Tools)
{
    toolnames += t.Keys +" , ";
}

MessageBox.Show(toolnames);

My issue is that when I add that code to my form load event, I get an error that the name ‘BindingFlags’ does not exist in the current context. I changed the instances of TimeExpenseForm to MainController (the name of the top level control) and I get these errors. I need to see all tools that are identified on the dashboard screen in order to hijack the save button.