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