private void OnAddEnginesRoot(DebugRoot root) { UpdateData(); if (RootSelection == null || Data?.DebugRoots.All(r => r != RootSelection) == true) { SetRootSelection(root); } }
public void SetRootSelection(DebugRoot selection) { if (RootSelection != selection) { RootSelection = selection; groupListView.SetSelection(new List <int>()); ReloadAll(); } }
public static string GetNameRoot(DebugRoot root) { var engroot = Instance?.DebugInfo.DebugRoots.FirstOrDefault(r => root == r)?.EnginesRoot; if (engroot == null || !EnginesRootDebugNames.ContainsKey(engroot)) { return($"Unknown root"); } return(EnginesRootDebugNames[engroot]); }