Ejemplo n.º 1
0
 public RestoreProgramHandler(Archive archive, ALocationsHandler loc)
     : base(loc)
 {
     this._program_title = Strings.GetLabelString("IsRestoring",
         this._program_title.ToString());
     this.archive = archive;
 }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
0
 public BackupProgramHandler(ALocationsHandler loc)
     : base(loc)
 {
     worker.DoWork += new DoWorkEventHandler(BackupProgramHandler_DoWork);
     worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(BackupProgramHandler_RunWorkerCompleted);
 }
Ejemplo n.º 6
0
 public BackupProgramHandler(List<GameEntry> backup_list, ALocationsHandler loc)
     : this(loc)
 {
     back_these_up = backup_list;
 }