/// <summary> /// Initializes a new instance of the <see cref="TypePromptDocument"/> class. /// </summary> /// <param name="culture">The culture.</param> /// <param name="prompt">The prompt.</param> public TypePromptDocument(CultureInfo culture, TypePromptDocument prompt) { if (culture == null) throw new ArgumentNullException("culture"); if (prompt == null) throw new ArgumentNullException("prompt"); FullTypeName = prompt.FullTypeName; TypeName = prompt.TypeName; TextName = prompt.TextName; TextKey = prompt.TextKey; LocaleId = culture.LCID; UpdatedAt = prompt.UpdatedAt; UpdatedBy = prompt.UpdatedBy; Text = ""; }
private static TypePrompt CreateTextPrompt(TypePromptDocument p) { //var type = Type.GetType(string.Format("{0}, {1}", p.FullTypeName, p.AssemblyName), true); return(new TypePrompt { LocaleId = p.LocaleId, TypeFullName = p.FullTypeName, TextName = p.TextName, Key = new TypePromptKey(p.TextKey), TranslatedText = p.Text, UpdatedAt = p.UpdatedAt, UpdatedBy = p.UpdatedBy }); }
/// <summary> /// Initializes a new instance of the <see cref="TypePromptDocument"/> class. /// </summary> /// <param name="culture">The culture.</param> /// <param name="prompt">The prompt.</param> public TypePromptDocument(CultureInfo culture, TypePromptDocument prompt) { if (culture == null) { throw new ArgumentNullException("culture"); } if (prompt == null) { throw new ArgumentNullException("prompt"); } FullTypeName = prompt.FullTypeName; TypeName = prompt.TypeName; TextName = prompt.TextName; TextKey = prompt.TextKey; LocaleId = culture.LCID; UpdatedAt = prompt.UpdatedAt; UpdatedBy = prompt.UpdatedBy; Text = ""; }
public void AddPrompt(TypePromptDocument typePrompt) { Prompts.Add(typePrompt); IsModified = true; }
public void AddPrompt(TypePromptDocument typePrompt) { Prompts.Add(typePrompt); IsModified = true; }