Exemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     this.creator = new BackupCreator();
     this.active  = true;
     this.thread  = new Thread(new ThreadStart(this.DiscListener));
     this.thread.Start();
 }
Exemplo n.º 2
0
        internal static void InitAutosave(string settingsDir)
        {
            if (autosaveInit)
            {
                return;
            }

            MelonLogger.Msg("Starting to initiate profile AutoSaving...");
            InitAutosaveSettings(settingsDir);
            backup = new BackupCreator(autosavePath, maxSavedBackups);
            ScheduleAutosave();
            autosaveInit = true;

            MelonLogger.Msg("Successfully initiated profile AutoSaving");
        }
Exemplo n.º 3
0
        // private bool completed;
        #endregion

        public BackgroundMediaFileCopy(int copyId)
        {
            this.dbCopyId = copyId;

            copyier            = new BackupCreator(this.dbCopyId);
            copyier.CopyFlags ^= CopyFileFlags.FileFailIfExists;  //Sobreescribir

            //copyier.CopyCanceledEvent += new EventHandler(copyier_CopyCanceled);
            copyier.CopyCompletedEvent    += new EventHandler <BackupEventArgs>(copyier_CopyCompleted);
            copyier.CopyProgressEvent     += new EventHandler <BackupEventArgs>(copyier_CopyProgressEvent);
            copyier.FileCopyStartEvent    += new EventHandler <FileEventArgs>(copyier_FileCopyStart);
            copyier.FileCopyProgressEvent += new EventHandler <FileProgressEventArgs>(copyier_FileCopyProgressEvent);
            copyier.StatusChangedEvent    += new EventHandler <StatusChangedEventArgs>(copyier_StatusChangedEvent);
            copyier.CountCompletedEvent   += new EventHandler <BackupEventArgs>(copyier_CountCompleted);
            //copyier.FileCopyUnsucessfulEvent += new EventHandler<FileCopyUnsuccessfulEventArgs>(copyier_FileCopyUnsucessfull);
        }