public RestoreProgramHandler(Archive archive, ALocationsHandler loc)
     : base(loc)
 {
     this._program_title = Strings.GetLabelString("IsRestoring",
                                                  this._program_title.ToString());
     this.archive = archive;
 }
Esempio n. 2
0
        public MainProgramHandler(ALocationsHandler loc)
            : base(loc)
        {
            string mode;

            if (AllUsersMode)
            {
                mode = Strings.GetSourceString("AllUsersMode");
            }
            else
            {
                mode = Strings.GetSourceString("SingleUserMode");
            }

            _program_title = Strings.GetLabelString("MASGAUWindowTitle", Core.version.ToString(), mode);
        }
Esempio n. 3
0
        public AProgramHandler(ALocationsHandler locations)
            : base() {

            if (!Core.Ready)
                return;

            if (Core.Mode >= Config.ConfigMode.Portable)
                _program_title = Strings.GetLabelString("PortableMode", _program_title);

            if (Core.locations == null) {
                Core.locations = locations;
            }

            worker.DoWork += new DoWorkEventHandler(doWork);
            worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(workCompleted);
        }
Esempio n. 4
0
 public BackupProgramHandler(ALocationsHandler loc)
     : base(loc)
 {
     worker.DoWork             += new DoWorkEventHandler(BackupProgramHandler_DoWork);
     worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(BackupProgramHandler_RunWorkerCompleted);
 }
Esempio n. 5
0
        public BackupProgramHandler(GameEntry this_game, List <DetectedFile> only_these, string archive_name, ALocationsHandler loc)
            : this(loc) {
            back_these_up = new List <GameEntry>();
            back_these_up.Add(this_game);

            if (only_these != null)
            {
                only_these_files = only_these;
            }
            archive_name_override = archive_name;
        }
Esempio n. 6
0
 public BackupProgramHandler(List <GameEntry> backup_list, ALocationsHandler loc)
     : this(loc) {
     back_these_up = backup_list;
 }