コード例 #1
0
 // ********************************************************************
 // initialize model from file
 // ********************************************************************
 public static bool Open()
 {
     Iso9660.EnumFileSys(new EnumModelFiles());
     itemnames.Load();
     skills.Load();
     return(true);
 }
コード例 #2
0
        public bool Notify(object obj)
        {
            win.Nodes.Clear();
            this.obj = obj;
            if (obj != null)
            {
                string   volume = Iso9660.pvd.VolumeIdentifier.Trim();
                TreeNode root   = win.Nodes.Add("CD:PVD", "CDROM");
                root.ImageIndex         = SysIcons.GetDiskIconIndex();
                root.SelectedImageIndex = root.ImageIndex;

                TreeNode node = root.Nodes.Add("CD:ROOT", volume);
                node.ImageIndex         = SysIcons.GetDiskIconIndex();
                node.SelectedImageIndex = node.ImageIndex;
                return(Iso9660.EnumFileSys(new EnumDiskView(node)));
            }
            return(true);
        }