Skip to content
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

Шестопалов Андрей #33

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Virtical
Copy link

No description provided.

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net48</TargetFramework>

This comment was marked as resolved.

{
public static string GetFileNameFromUser()
{
while (true)

This comment was marked as resolved.

{
while (true)
{
Console.Write("Введите размер изображения (ширина высота): ");

This comment was marked as resolved.

public static string GetFontNameFromUser()
{
Console.Write("Введите название шрифта: ");
return Console.ReadLine() ?? "Arial";

This comment was marked as resolved.

{
public static bool FontExists(this string fontName)
{
return FontFamily.Families.Any(f => f.Name.Equals(fontName, StringComparison.OrdinalIgnoreCase));

This comment was marked as resolved.

return Console.ReadLine() ?? "Arial";
}

public static Color GetColorFromUser(string prompt)

This comment was marked as resolved.

{
public static void Main()
{
var fileName = App.GetFileNameFromUser();

This comment was marked as resolved.


public class Program
{
public static void Main()

This comment was marked as resolved.


namespace TagsCloudContainer;

public class CircularCloudLayouter

This comment was marked as resolved.

{
public static Dictionary<string, int> Parse(string wordsPath)
{
var excludedWordsPath = Path.Combine("..", "..", "..", "excluded_words.txt");

This comment was marked as resolved.

return this;
}

private static List<string> GetWordsFromDoc(string filePath)

This comment was marked as resolved.

if (Tags.Count == 0)
return System.Drawing.Size.Empty;

var left = Tags.Select(tag => tag.Rectangle).Min(rectangle => rectangle.Left);

This comment was marked as resolved.


var extension = Path.GetExtension(wordsPath).ToLower();

excludedWords = extension switch

This comment was marked as resolved.

{
public static void Main()
{
var imageDimensions = GetImageDimensionsFromUser("Введите размер изображения (по умолчанию W: 1000, H: 1000):");

This comment was marked as resolved.

var layouter = scope.Resolve<CircularCloudLayouter>();

layouter
.SetFontName(() => GetFontNameFromUser("Введите название шрифта (по умолчанию Arial):"))

This comment was marked as resolved.

var container = ContainerConfig.Configure(imageDimensions.Center);

var fileParser = new WordProcessor();
var words = fileParser

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants