Esempio n. 1
0
        public NameData()
        {
            FirstName = "None";
            LastName  = "None";

            Id = NameDatabase.GetNextNameId();
        }
Esempio n. 2
0
        public NameData(string InFirstName, string InLastName)
        {
            FirstName = InFirstName;
            if (FirstName.Length > 0)
            {
                StringBuilder FormattedFirstName = new StringBuilder();
                FormattedFirstName.Append(FirstName.Substring(0, 1).ToUpper());
                FormattedFirstName.Append(FirstName.Substring(1).ToLower());
                FirstName = FormattedFirstName.ToString();
            }
            LastName = InLastName;
            if (LastName.Length > 0)
            {
                StringBuilder FormattedLastName = new StringBuilder();
                FormattedLastName.Append(LastName.Substring(0, 1).ToUpper());
                FormattedLastName.Append(LastName.Substring(1).ToLower());
                LastName = FormattedLastName.ToString();
            }

            FirstAliases.Add(InFirstName);
            LastAliases.Add(InLastName);

            Id = NameDatabase.GetNextNameId();
        }