public PasswordGeneratorDialog(AleaForm form)   : this(false, form)
 {
 }
        public PasswordGeneratorDialog(bool bUseOwnLanguage, AleaForm form)
        {
            InitializeComponent();

            _useOwnLanguage = bUseOwnLanguage;
            _aleaForm       = form;

            if (_aleaForm != null)
            {
                _language = _aleaForm._language;
            }

            if (!_useOwnLanguage)
            {
                return;
            }

            _language.Consonants = new Dictionary <string, double>
            {
                { "b", 1 },
                { "d", 1 },
                { "f", 3 },
                { "g", 2 },
                { "h", 3 },
                { "k", 2 },
                { "l", 5 },
                { "m", 8 },
                { "n", 8 },
                { "p", 5 },
                { "r", 8 },
                { "s", 10 },
                { "t", 5 },
                { "v", 3 },
                { "z", 1 }
            };

            _language.Vowels = new Dictionary <string, double>
            {
                { "a", 5 },
                { "e", 10 },
                { "i", 5 },
                { "o", 8 },
                { "u", 1 },
            };

            _language.Syllables = new Dictionary <SyllabicType, double>
            {
                { SyllabicType.CV, 5 },
                { SyllabicType.VC, 5 },
                { SyllabicType.V, 1 }
            };

            _language.InnerPunctuation = new Dictionary <string, double>
            {
                { " ", 1 }
            };

            _language.FinalPunctuation = new Dictionary <string, double>
            {
                { " ", 1 }
            };

            _language.WordLengthDistribution = new Dictionary <int, double>
            {
                { 4, 1 }
            };

            _language.UpdateRandomizers(false);
        }