/// <summary>
/// SetStatus - Updates a toolbutton's status, based on a designer action
/// </summary>
/// <param name="action">DesignerAction to take in string format</param>
/// <param name="toolButton">ToolButton to update</param>
private void SetStatus(string action,System.Windows.Forms.ToolBarButton toolButton)
{
DesignerAction daAction = GetActionFromString(action);
//Do the following if the DesignerAction isn't a FileOpen
if(daAction != DesignerAction.FileOpen)
{
//Set toolButton attributes based on the Designer Action
toolButton.Enabled = this.ardMain.QueryActionEnabled(daAction);
toolButton.Pushed = this.ardMain.QueryActionChecked(daAction);
}
}