public void LoadGenerator(CharacterGenerator Generator)
 {
     textBoxName.Text = Generator.Name;
     comboBoxEncoding.SelectedIndex = GeneratorEncoding.ReturnEncodingIndex(Generator.Encoding);
     numericUpDownIncrement.Value = Convert.ToDecimal(Generator.Increment);
     numericUpDownStartCharacter.Value = Convert.ToDecimal(Generator.StartCharacter);
     numericUpDownStopCharacter.Value = Convert.ToDecimal(Generator.StopCharacter);
 }
 private List<string> BuildCharacters(CharacterGenerator Generator, string Text)
 {
     List<string> fuzzed = new List<string>();
     for (int i = Generator.StartCharacter; i <= Generator.StopCharacter; i += Generator.Increment)
     {
         char converted = Convert.ToChar(i);
         fuzzed.Add(Text.Replace("{" + Generator.Name + "}", converted.ToString()));
     }
     return fuzzed;
 }
        public CharacterGenerator GetGenerator()
        {
            CharacterGenerator characterGenerator = new CharacterGenerator();
            characterGenerator.Name = textBoxName.Text;
            characterGenerator.Encoding = GeneratorEncoding.GetEncoding(comboBoxEncoding.SelectedIndex);
            characterGenerator.Increment = Convert.ToInt32(numericUpDownIncrement.Value);
            characterGenerator.StartCharacter = Convert.ToInt32(numericUpDownStartCharacter.Value);
            characterGenerator.StopCharacter = Convert.ToInt32(numericUpDownStopCharacter.Value);

            return characterGenerator;
        }