コード例 #1
0
 /// <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 = "";
 }
コード例 #2
0
 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
     });
 }
コード例 #3
0
 /// <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         = "";
 }
コード例 #4
0
 public void AddPrompt(TypePromptDocument typePrompt)
 {
     Prompts.Add(typePrompt);
     IsModified = true;
 }
コード例 #5
0
 public void AddPrompt(TypePromptDocument typePrompt)
 {
     Prompts.Add(typePrompt);
     IsModified = true;
 }