public bool AddMark(LegendIcon icon, LegendColor color, string text, DateTime created, string prefix = default(string), bool isPublic = true, int quantity = 0) { var newMark = new LegendMark(icon, color, text, created, prefix, isPublic, quantity); return(_addLegendMark(newMark)); }
public bool AddMark(LegendIcon icon, LegendColor color, string text, DateTime timestamp, string prefix = default(string), bool isPublic = true, int quantity = -1, bool displaySeason = true, bool displayTimestamp = true) { var newMark = new LegendMark(icon, color, text, timestamp, prefix, isPublic, quantity, displaySeason, displayTimestamp); return(_addLegendMark(newMark)); }
public LegendMark(LegendIcon icon, LegendColor color, string text, DateTime created, string prefix = default(string), bool isPublic = true, int quantity = 0) { Icon = icon; Color = color; Text = text; Public = isPublic; Quantity = quantity; Prefix = prefix; Created = created; }
public bool AddLegendMark(LegendIcon icon, LegendColor color, string text, DateTime created, string prefix = default(string), bool isPublic = true, int quantity = 0) { try { return(User.Legend.AddMark(icon, color, text, created, prefix, isPublic, quantity)); } catch (ArgumentException) { Logger.ErrorFormat("Legend mark: {0}: duplicate prefix {1}", User.Name, prefix); } return(false); }
public LegendMark(LegendIcon icon, LegendColor color, string text, DateTime timestamp, string prefix = default(string), bool isPublic = true, int quantity = -1, bool displaySeason = true, bool displayTimestamp = true) { Icon = icon; Color = color; Text = text; Public = isPublic; Quantity = quantity; Prefix = prefix; Timestamp = timestamp; Created = DateTime.Now; LastUpdated = DateTime.Now; DisplaySeason = displaySeason; DisplayTimestamp = displayTimestamp; }
public bool AddLegendMark(LegendIcon icon, LegendColor color, string text, string prefix = default(string), bool isPublic = true, int quantity = 0) { return(AddLegendMark(icon, color, text, DateTime.Now, prefix, isPublic, quantity)); }