private RandomUtil.StringGeneratorOptions GetGeneratorOptions()
 {
     var options = new RandomUtil.StringGeneratorOptions();
     if (cbUppercase.Checked)
         options = options | RandomUtil.StringGeneratorOptions.UpperCase;
     if (cbLowercase.Checked)
         options = options | RandomUtil.StringGeneratorOptions.LowerCase;
     if (cbDigits.Checked)
         options = options | RandomUtil.StringGeneratorOptions.Digits;
     if (cbSymbols.Checked)
         options = options | RandomUtil.StringGeneratorOptions.Special;
     
     return options;
 }
        private RandomUtil.StringGeneratorOptions GetGeneratorOptions()
        {
            var options = new RandomUtil.StringGeneratorOptions();

            if (cbUppercase.Checked)
            {
                options = options | RandomUtil.StringGeneratorOptions.UpperCase;
            }
            if (cbLowercase.Checked)
            {
                options = options | RandomUtil.StringGeneratorOptions.LowerCase;
            }
            if (cbDigits.Checked)
            {
                options = options | RandomUtil.StringGeneratorOptions.Digits;
            }
            if (cbSymbols.Checked)
            {
                options = options | RandomUtil.StringGeneratorOptions.Special;
            }

            return(options);
        }