Exemplo n.º 1
0
        /// <summary>
        /// Add stint
        /// </summary>
        /// <param name="color">Color of stint</param>
        /// <param name="textColor"></param>
        /// <param name="percent">Lowest percent of stint</param>
        /// <returns>True if added, else false</returns>
        public void AddStint(Color color, Color textColor, int percent)
        {
            var t = new ColorStintData()
            {
                Color     = color,
                Percent   = percent,
                TextColor = textColor
            };

            Stints.Add(t);
            Stints.Sort();
        }
Exemplo n.º 2
0
 public void RemoveStint(int index)
 {
     Stints.RemoveAt(index);
     Stints.Sort();
 }
Exemplo n.º 3
0
 public void ChangeStintByIndex(int index, Color color)
 {
     Stints[index].Color = color;
     Stints.Sort();
 }
Exemplo n.º 4
0
 public void ChangeStintByIndex(int index, int percent)
 {
     Stints[index].Percent = percent;
     Stints.Sort();
 }