internal AppTreePosition GetPath(HomeData dat)
        {
            var dis = Folder.GetDisk();
            var dev = dat.devices.Find((i) => { return(i.disks.Contains(dis)); });

            return(new AppTreePosition(dev, dis, this));
        }
 public void Dispose()
 {
     dat  = null;
     dev  = null;
     dir  = null;
     disk = null;
     file = null;
 }
        public TargetDeviceSelect(Classes.HomeData dat)
        {
            DialogResult = DialogResult.Cancel;
            data         = dat;
            InitializeComponent();
            ulong deviceId = Properties.Settings.Default.localDevId;

            foreach (var dev in dat.devices)
            {
                if (dev.Id != deviceId)
                {
                    listBox1.Items.Add(dev);
                }
            }
        }
 public HDEnum(HomeData dat)
 {
     this.dat = dat;
     dev      = dat.devices.GetEnumerator();
 }