ExpandedSearchInfo/ExpandedSearchInfo/Sections/TextSection.cs

24 lines
605 B
C#
Raw Normal View History

2021-02-18 20:20:40 +00:00
using System;
using ExpandedSearchInfo.Providers;
2021-02-18 20:20:40 +00:00
namespace ExpandedSearchInfo.Sections {
public class TextSection : ISearchInfoSection {
public IProvider Provider { get; }
2021-02-18 20:20:40 +00:00
public string Name { get; }
public Uri Uri { get; }
private string Info { get; }
internal TextSection(IProvider provider, string name, Uri uri, string info) {
this.Provider = provider;
2021-02-18 20:20:40 +00:00
this.Name = name;
this.Uri = uri;
this.Info = info;
}
public void Draw() {
Util.DrawLines(this.Info);
}
}
}