Exemplo n.º 1
0
 // Methods
 public LocalizedString(IDomainStringService stringService)
 {
     //__ContractsRuntime.Requires(stringService != null, null, "stringService != null");
       this.PropertyChanged = delegate(object param0, PropertyChangedEventArgs param1)
       {
       };
       this.service = stringService;
       PropertyChangedEventManager.AddListener(this.service, this, string.Empty);
 }
Exemplo n.º 2
0
        private static void LoadImpl(string baseDir, IStringService stringService)
        {
            dataCollection = DataCollection.Load(Path.Combine(baseDir, CONSTS.INDEX_FILE), baseDir);
              configuration = dataCollection.ReadFile<DataConfiguration>(CONSTS.CONFIG_FILE, true);

              String = stringService.GetDomainService(CONSTS.BATTLE_DOMAIN);
              String.SetProvider(LoadGameStrings);
              DataString = stringService.GetDomainService(CONSTS.BATTLE_DATA_DOMAIN);
              DataString.SetProvider(LoadDataStrings);

              Image = new ImageService(dataCollection, configuration);

              //GameLog = new GameLog(logStringService);

              romData = RomData.Load();
        }
Exemplo n.º 3
0
 public LocalizedString(IDomainStringService stringService, string key)
     : this(stringService)
 {
     this._key = key;
 }