示例#1
0
        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();
        }
示例#2
0
        private void CopySingleFileStarted(CopyCurrentFileInfo data)
        {
            CopySingleFileStartedDelegate dd = new CopySingleFileStartedDelegate(CopySingleFileStarted2);

            this.Dispatcher.BeginInvoke(dd, data);
        }