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;} } }