Exemplo n.º 1
0
        public void DoCopy(ProgressChangeDelegate ProgressChanged, Completedelegate ModelOnOnComplete, Grid panel)
        {
            var newCopy = new CopyClass(_pathes.FromPath, _pathes.ToPath, ProgressChanged, ModelOnOnComplete, panel);

            panel.Tag = newCopy;
            Thread newThread = new Thread(new ThreadStart(newCopy.Copy));

            newThread.IsBackground = true;
            newThread.Start();
        }
Exemplo n.º 2
0
        public CopyClass(string Source, string Dest, ProgressChangeDelegate onProgressChanged, Completedelegate onComplete, Grid panel)
        {
            this.SourceFilePath = Source;

            this.DestFilePath = Dest;

            _panel = panel;

            OnProgressChanged += onProgressChanged;

            OnComplete += onComplete;
        }