Ejemplo n.º 1
0
        void sendFileWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            string workingDir            = CurrentDirectory;
            List <FileInformation> files = (List <FileInformation>)e.Argument;

            foreach (FileInformation fi in files)
            {
                if (fi.Attributes == FileAttributes.Directory)
                {
                    XBoxIO.SendDirectory(fi, workingDir, StatusChanged);
                }
                else
                {
                    XBoxIO.SendFile(fi, workingDir, StatusChanged);
                }
            }
        }