private void LoadProtectedList() { ProtectedList.Load(); foreach (string pro in ProtectedList.GetList) { AddProtected(pro); } }
private void SaveProtectedList() { ProtectedList.Clear(); foreach (Node node in ListProtectedItems.Nodes) { ProtectedList.AddProtected(node.Tag.ToString()); } ProtectedList.Save(); }
/// <summary> /// Initializes a new instance of the <see cref="SceneNodes"/> class. /// </summary> public SceneNodes() { Models = new ProtectedList <Model>(); Cameras = new ProtectedList <Camera>(); Movers = new ProtectedList <Mover>(); Zones = new ProtectedList <Zone>(); Huds = new ProtectedList <HudBase <Avatar> >(); Avatars = new ProtectedList <Avatar>(); Particles = new ProtectedList <Particle>(); }
public void ProtectedListTests() { try { var a = new ProtectedList <Model> { new Model { Description = "description", Action = "hello" } }; var i = a.Count; foreach (var b in from p in a select p) { } } catch (SecurityException ex) { } }
public EventObjectScanEventArgs(ProtectedList <Model> model) { Model = model; }