示例#1
0
        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));
        }
示例#2
0
        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));
        }
示例#3
0
 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;
 }
示例#4
0
 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);
 }
示例#5
0
 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;
 }
示例#6
0
 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));
 }