ttrss-co-pilot/ttrss/datastructures/Label.cs

20 lines
660 B
C#
Raw Normal View History

2023-04-03 16:37:59 -04:00
using System.Collections.Generic;
namespace ttrss_co_client.ttrss.datastructures
{
public class Label
{
2023-04-04 13:36:08 -04:00
public void FromArticle(string[] fromServer)
2023-04-03 16:37:59 -04:00
{
int.TryParse(fromServer[0], out id);
2023-04-04 13:36:08 -04:00
caption = fromServer[1];
fg_color = System.Drawing.ColorTranslator.FromHtml(fromServer[2]);
bg_color = System.Drawing.ColorTranslator.FromHtml(fromServer[3]);
2023-04-03 16:37:59 -04:00
}
public int id;
2023-04-04 13:36:08 -04:00
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;}
}
2023-04-03 16:37:59 -04:00
}