private static void EnsureTemplateTreeDoesNotSelectRoot(Main main) { main.foldersTreeView.Focus(); }
/// <summary> /// When performing an Up,Down, Top or Bottom to the Category TreeView, /// the TreeView automatically selects the root node. /// To prevent this, thr workaround is to Focus the TreeView directly after one of this operations. /// </summary> private static void EnsureCategoryTreeDoesNotSelectRoot(Main main) { main.categoriesTree.Focus(); }