Ejemplo n.º 1
0
        /// <summary>
        /// Defines a translated input field with the given name.  Normally translated
        /// input fields are used for classifiers.  An example is translating a color
        /// to a set of K classes uses the KClassTranslator.
        /// </summary>
        /// <param name="name">The name of the input field</param>
        /// <param name="translator">The translator used to modify the value</param>
        public void DefineTranslatedInputField(string name, Translator translator)
        {
            TranslatedField field = new TranslatedField();

            field.Name       = name;
            field.Translator = translator;
            fields.Add(field);
            fieldByName[name] = field;
        }
Ejemplo n.º 2
0
		/// <summary>
		/// Defines a translated input field with the given name.  Normally translated
		/// input fields are used for classifiers.  An example is translating a color
		/// to a set of K classes uses the KClassTranslator.
		/// </summary>
		/// <param name="name">The name of the input field</param>
		/// <param name="translator">The translator used to modify the value</param>
		public void DefineTranslatedInputField(string name, Translator translator) {
			TranslatedField field = new TranslatedField();
			field.Name = name;
			field.Translator = translator;
			fields.Add(field);
			fieldByName[name] = field;
		}