ttrss-co-pilot/ttrss/datastructures/Label.cs
2023-04-04 13:36:08 -04:00

20 lines
660 B
C#

using System.Collections.Generic;
namespace ttrss_co_client.ttrss.datastructures
{
public class Label
{
public void FromArticle(string[] fromServer)
{
int.TryParse(fromServer[0], out id);
caption = fromServer[1];
fg_color = System.Drawing.ColorTranslator.FromHtml(fromServer[2]);
bg_color = System.Drawing.ColorTranslator.FromHtml(fromServer[3]);
}
public int id;
public string caption { get; set; }
public System.Drawing.Color fg_color { get; set; }
public System.Drawing.Color bg_color { get; set; }
public bool @checked { get; set;}
}
}