public static void UpdateOverlayListSelection(Selection selection) { if (master != null) { foreach (TreeNode child in master.ItemList.Nodes) { var overlay = child.Tag as Overlay; child.Checked = selection.IsOverlaySelected(overlay); } } }
public static void UpdateOverlayList(TourStop tourStop, Selection selection) { if (master != null) { master.ItemList.Nodes.Clear(); if (tourStop != null) { foreach (var overlay in tourStop.Overlays) { var item = new TreeNode(overlay.Name); item.Tag = overlay; item.Checked = selection.IsOverlaySelected(overlay); master.ItemList.Nodes.Add(item); } } } // Hack to update Keyframer UI TimeLine.RefreshUi(); }