/// <summary> /// Creates a new form to filter errors for the given ORM model. /// </summary> /// <param name="model">The orm model for which to filter errors.</param> public ModelErrorDisplayFilterForm(ORMModel model) { this.myModel = model; InitializeComponent(); LoadCategories(); ITree tree = new VirtualTree(); IBranch rootBranch = new InitialCategoriesBranch(myCategories, myErrors); tree.Root = rootBranch; #if VISUALSTUDIO_9_0 // MSBUG: Hack workaround crashing bug in VirtualTreeControl.OnToggleExpansion this.virtualTreeControl.ColumnPermutation = new ColumnPermutation(1, new int[]{0}, false); #endif this.virtualTreeControl.Tree = tree; }
/// <summary> /// Creates a new form to filter errors for the given ORM model. /// </summary> /// <param name="model">The orm model for which to filter errors.</param> public ModelErrorDisplayFilterForm(ORMModel model) { this.myModel = model; InitializeComponent(); LoadCategories(); ITree tree = new VirtualTree(); IBranch rootBranch = new InitialCategoriesBranch(myCategories, myErrors); tree.Root = rootBranch; #if VISUALSTUDIO_9_0 // MSBUG: Hack workaround crashing bug in VirtualTreeControl.OnToggleExpansion this.virtualTreeControl.ColumnPermutation = new ColumnPermutation(1, new int[] { 0 }, false); #endif this.virtualTreeControl.Tree = tree; }