示例#1
0
        private void BtnBackupDcim_Click(object sender, RoutedEventArgs e)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog
            {
                Description = App.Current.Resources["selectDcimBackupFloder"].ToString()
            };

            if (fbd.ShowDialog() == DialogResult.OK)
            {
                var args = new DcimBackuperArgs()
                {
                    DevBasicInfo = _currentDevInfo,
                    TargetPath   = fbd.SelectedPath + "\\backup"
                };
                var backuper = new DcimBackuper();
                backuper.Init(args);
                new PullingWindow(backuper)
                {
                    Owner = App.Current.MainWindow
                }.Show();
            }
        }
示例#2
0
        public void BackupDcim(DeviceBasicInfo targetDevice)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog
            {
                Description = App.Current.Resources["selectDcimBackupFloder"].ToString()
            };

            if (fbd.ShowDialog() == DialogResult.OK)
            {
                var args = new DcimBackuperArgs()
                {
                    DevBasicInfo = targetDevice,
                    TargetPath   = fbd.SelectedPath
                };
                var backuper = new DcimBackuper();
                backuper.Init(args);
                new PullingWindow(backuper)
                {
                    Owner = App.Current.MainWindow
                }.Show();
            }
        }