Ejemplo n.º 1
0
 private void LoadProtectedList()
 {
     ProtectedList.Load();
     foreach (string pro in ProtectedList.GetList)
     {
         AddProtected(pro);
     }
 }
Ejemplo n.º 2
0
 private void SaveProtectedList()
 {
     ProtectedList.Clear();
     foreach (Node node in ListProtectedItems.Nodes)
     {
         ProtectedList.AddProtected(node.Tag.ToString());
     }
     ProtectedList.Save();
 }
Ejemplo n.º 3
0
 /// <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>();
 }
Ejemplo n.º 4
0
        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) { }
        }
Ejemplo n.º 5
0
 public EventObjectScanEventArgs(ProtectedList <Model> model)
 {
     Model = model;
 }