예제 #1
0
        private void btnTest_Click(object sender, RoutedEventArgs e)
        {
            Names.CharacterNameGenerators nameGenerators = new Names.CharacterNameGenerators();
            Names.CharacterNames          names          = nameGenerators.GetWesternFemaleNameGenerator();
            Random rnd = new Random();

            tbLastError.Text = "Word: " + names.GenerateRandomName(rnd);
        }
예제 #2
0
 public NamePicker()
 {
     m_random         = new Random();
     m_nameGenerators = new Names.CharacterNameGenerators();
     InitializeComponent();
     CeebeetleWindowInit();
     rbWesternFemale.IsChecked = true;
     Validate();
 }