string CreateFileForTransfer()
        {
            _pleaseWait = new BlowTrial.View.PleaseWait();
            _pleaseWait.Show();
            string newFilepath = _repository.BackupLimitedDbTo(SelectedSite.Directory, SelectedSite.Models.ToArray());

            return(Path.GetFileName(newFilepath));
        }
Пример #2
0
        void ReplaceDb()
        {
            var pw = new BlowTrial.View.PleaseWait();

            pw.Show();
            string currentPath = TrialDataContext.GetDbPath();

            if (_repository != null)
            {
                _repository.Dispose();
                _repository = null;
            }
            System.IO.File.Move(currentPath, currentPath.InsertDateStampToFileName());
            TransferFile.AllowUpdate(_transferLog, fi =>
            {
                fi.MoveTo(currentPath);
            });
            pw.Close();
        }