-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Калентьев Илья tg: @m1nus0ne #22
base: master
Are you sure you want to change the base?
Conversation
TagCloudApp/Results/default.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Результат генерации получился странным. Крупные слова разбросаны по всему облаку, а так быть не должно
[Option('d', "destination", HelpText = "Set destination path.", Default = @"..\..\..\Results")] | ||
public string DestinationPath { get; set; } | ||
|
||
[Option('s', "source", HelpText = "Set source path.", Default = @"..\..\..\Results\text.txt")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Попробуй посмотреть описание любой часто используемой консольной программы, сдеалнное тобой описание не информативно
TagCloud/TagCloudServicesFactory.cs
Outdated
if (options.ColorScheme == "gray") | ||
builder.RegisterType<RandomColorSelector>().As<IColorSelector>().SingleInstance(); | ||
if (options.ColorScheme == "random") | ||
builder.RegisterType<GrayScaleColorSelector>().As<IColorSelector>().SingleInstance(); | ||
else if (ColorConverter.TryConvert(options.ColorScheme, out var color)) | ||
builder.Register(provider => new ConstantColorSelector(color)).As<IColorSelector>().SingleInstance(); | ||
else | ||
builder.Register(provider => new ConstantColorSelector(Color.Black)).As<IColorSelector>().SingleInstance(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
эти условия можно заменить полиморфизмом
No description provided.