public GenerateGuidWindowModelView()
     : base("GenerateGuidWindowModelView")
 {
     _generateGuidService = ServiceActivator.Get <IGenerateGuidService>();
     GenerateGuidDto      = new GenerateGuidDto();
     CloseCommand         = new RelayCommand(OnCloseCommand);
     GenerateCommand      = new RelayCommand(OnGenerateCommand, x => !IsThreadRunning);
 }
        public GenerateGuidDto Generate(GenerateGuidDto generateGuidDto)
        {
            List <string> guids = DoGenerateGuids(generateGuidDto.Count);

            if (generateGuidDto.Uppercase)
            {
                guids = DoUpperCase(guids);
            }

            if (generateGuidDto.RemoveBrackets)
            {
                guids = DoRemoveBrackets(guids);
            }
            generateGuidDto.GeneratedGuids = BuildString(guids);
            return(generateGuidDto);
        }