public void SetProgram(PROGRAM program) { m_Program = program; ConversionUtil.Bind(CodePath, m_Program, ConfigKey.CodeDirectory, ConfigFile.PathConfig); ConversionUtil.Bind(DataPath, m_Program, ConfigKey.DataDirectory, ConfigFile.PathConfig); ConversionUtil.Bind(CheckCreate, m_Program, ConfigKey.Create, ConfigFile.PathConfig); ConversionUtil.Bind(CheckCompress, m_Program, ConfigKey.Compress, ConfigFile.PathConfig); SetProgram_impl(); }
private void Bind() { ConversionUtil.Cleanup(); ConversionUtil.Bind(textBoxPackage, ConfigKey.PackageName, ConfigFile.InitConfig); ConversionUtil.Bind(textBoxSpawns, ConfigKey.SpawnList, ConfigFile.InitConfig); ConversionUtil.Bind(textTableConfig, ConfigKey.TableConfigPath, ConfigFile.InitConfig); ConversionUtil.Bind(textTableFolder, ConfigKey.TableFolderPath, ConfigFile.InitConfig); ConversionUtil.Bind(textMessage, ConfigKey.MessagePath, ConfigFile.InitConfig); ConversionUtil.Bind(textDatabaseConfig, ConfigKey.DatabaseConfigDirectory, ConfigFile.InitConfig); ConversionUtil.Bind(textBoxAllLanguages, ConfigKey.AllLanguage, ConfigFile.LanguageConfig); ConversionUtil.Bind(textBoxTranslation, ConfigKey.TranslationDirectory, ConfigFile.LanguageConfig); foreach (var pair in controls) { pair.Value.SetProgram(pair.Key); } }
private void Init() { ConversionUtil.Bind(TextBoxApiKey, ConfigKey.TinyApiKey, ConfigFile.TinyConfig); ConversionUtil.Bind(TextBoxSource, ConfigKey.TinySourcePath, ConfigFile.TinyConfig); ConversionUtil.Bind(TextBoxTarget, ConfigKey.TinyTargetPath, ConfigFile.TinyConfig); }