Ejemplo n.º 1
0
        public void startMonitoring(object sender, System.ComponentModel.DoWorkEventArgs e)
        {
            if (monitors.Count > 0)
            {
                stopMonitoring();
            }

            if (!IsMonitored)
            {
                return;
            }


            if (!CheckBackuptPathForMonitor())
            {
                return;
            }

            TranslatingProgressHandler.setTranslatedMessage("BackupUpForMonitor", this.Title);

            ProgressHandler.suppress_communication = true;

            BackupProgramHandler backup = new BackupProgramHandler(this, null, null, Core.locations);

            backup.RunWorkerAsync();
            while (backup.IsBusy)
            {
                Thread.Sleep(100);
            }


            TranslatingProgressHandler.setTranslatedMessage("SettingUpMonitorFor", this.Title);

            ProgressHandler.suppress_communication = false;


            foreach (DetectedLocationPathHolder path in this.DetectedLocations.Values)
            {
                MonitorPath mon = new MonitorPath(this, path);
                monitors.Push(mon);
                mon.start();
            }
        }
Ejemplo n.º 2
0
 protected void beginBackup(List <GameEntry> backup_list, RunWorkerCompletedEventHandler when_done)
 {
     backup = new BackupProgramHandler(backup_list, Core.locations);
     startBackup(when_done);
 }
Ejemplo n.º 3
0
 protected void beginBackup(RunWorkerCompletedEventHandler when_done)
 {
     backup = new BackupProgramHandler(Core.locations);
     startBackup(when_done);
 }
Ejemplo n.º 4
0
 protected void beginBackup(GameEntry game, List <DetectedFile> files, string archive_name, RunWorkerCompletedEventHandler when_done)
 {
     backup = new BackupProgramHandler(game, files, archive_name, Core.locations);
     startBackup(when_done);
 }