SIL.FieldWorks.TE.NotesMainWnd.OnUpdateSideBarConfigure C# (CSharp) Method

OnUpdateSideBarConfigure() protected method

This updates the given configure menu item. This configure menu item is on the sidebar tab's context menu or on one of the view menu item's sub-menus or one of the context menus that pops-up when the user clicks on an info. bar button.
protected OnUpdateSideBarConfigure ( object args ) : bool
args object
return bool
		protected bool OnUpdateSideBarConfigure(object args)
		{
			try
			{
				TMItemProperties itemProps = null;
				SBTabProperties tabProps = args as SBTabProperties;
				if (tabProps == null)
				{
					itemProps = args as TMItemProperties;
				}

				if (itemProps != null)
				{
					itemProps.Visible = false;
					itemProps.Update = true;
				}

				return true;
			}
			catch
			{
#if DEBUG
				throw;
#else
				return false; // just ignore in release builds
#endif
			}
		}