Skip to content

Instantly share code, notes, and snippets.

@strepicor
Created December 9, 2016 09:07
Show Gist options
  • Save strepicor/10b8e95e643c6c1ed0e10f7247b1148e to your computer and use it in GitHub Desktop.
Save strepicor/10b8e95e643c6c1ed0e10f7247b1148e to your computer and use it in GitHub Desktop.
Epicor Customization - Hide Default Treeview Panel
using System.Reflection;
public class Script
{
Infragistics.Win.UltraWinDock.UltraDockManager dock;
public void InitializeCustomCode()
{
//....
Object obj = typeof(Ice.UI.App.UD16Entry.UD16Form).InvokeMember("baseDockManager", BindingFlags.Instance | BindingFlags.GetField | BindingFlags.NonPublic, null, UD16Form, null);
dock = (Infragistics.Win.UltraWinDock.UltraDockManager)obj;
dock.DockAreas[0].Panes[0].Closed = true;
}
//....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment