private void CopySingleFileStarted2(object data) { CopyCurrentFileInfo passeddata = (CopyCurrentFileInfo)data; TextBlockSourceFile.Text = passeddata.oldFile; TextBlockDestinationFile.Text = passeddata.newFile; TextBlockCurrentFileNumber.Text = passeddata.CurrentFileNumber.ToString(); TextBlockTotalNumberofFiles.Text = passeddata.TotalFileNumber.ToString(); }
private void CopySingleFileStarted(CopyCurrentFileInfo data) { CopySingleFileStartedDelegate dd = new CopySingleFileStartedDelegate(CopySingleFileStarted2); this.Dispatcher.BeginInvoke(dd, data); }