protected override void Execute()
            {
                MoveBackupFilesAppToDirectory();

                var tmBackupTasksForm = new TMBackupTasksForm();

                tmBackupTasksForm.ShowDialog();
            }
Beispiel #2
0
        private void SetBackupModelInfo(BackupModel backupModel, Persistence persistence, Service service)
        {
            backupModel.BackupFrom    = txt_BackupFrom.Text;
            backupModel.BackupTo      = txt_BackupTo.Text;
            backupModel.Description   = txt_Description.Text;
            backupModel.BackupDetails = txt_BackupDetails.Text;
            backupModel.BackupTime    = txt_BackupTime.Text;
            _backupModelList.Add(backupModel);

            persistence.SaveBackupFormInfo(_backupModelList, _isNewTask);

            Hide();

            service.CreateTaskScheduler(backupModel.BackupName, false);

            var tmBackupTasksForm = new TMBackupTasksForm();

            tmBackupTasksForm.ShowDialog();
        }