static ColorOptions()
        {
            Default = new ColorOption {Name = "Default", Color = null};
            Yellow = new ColorOption {Name = "Yellow", Color = Colors.Yellow};
            Cyan = new ColorOption {Name = "Cyan", Color = Colors.Cyan};
            Green = new ColorOption {Name = "Green", Color = Colors.Green};

            All = new List<ColorOption>
            {
                Default,
                Green,
                Yellow,
                Cyan,
                new ColorOption { Name = "Black", Color = Colors.Black },
                new ColorOption { Name = "Blue", Color = Colors.Blue },
                new ColorOption { Name = "Brown", Color = Colors.Brown },
                new ColorOption { Name = "Dark Gray", Color = Colors.DarkGray },
                new ColorOption { Name = "Gray", Color = Colors.Gray },
                new ColorOption { Name = "Light Gray", Color = Colors.LightGray },
                new ColorOption { Name = "Magenta", Color = Colors.Magenta },
                new ColorOption { Name = "Orange", Color = Colors.Orange },
                new ColorOption { Name = "Purple", Color = Colors.Purple },
                new ColorOption { Name = "Red", Color = Colors.Red },
                new ColorOption { Name = "White", Color = Colors.White }
            };
        }
Exemple #2
0
        static ColorOptions()
        {
            Default = new ColorOption {
                Name = "Default", Color = null
            };
            Yellow = new ColorOption {
                Name = "Yellow", Color = Colors.Yellow
            };
            Cyan = new ColorOption {
                Name = "Cyan", Color = Colors.Cyan
            };
            Green = new ColorOption {
                Name = "Green", Color = Colors.Green
            };

            All = new List <ColorOption>
            {
                Default,
                Green,
                Yellow,
                Cyan,
                new ColorOption {
                    Name = "Black", Color = Colors.Black
                },
                new ColorOption {
                    Name = "Blue", Color = Colors.Blue
                },
                new ColorOption {
                    Name = "Brown", Color = Colors.Brown
                },
                new ColorOption {
                    Name = "Dark Gray", Color = Colors.DarkGray
                },
                new ColorOption {
                    Name = "Gray", Color = Colors.Gray
                },
                new ColorOption {
                    Name = "Light Gray", Color = Colors.LightGray
                },
                new ColorOption {
                    Name = "Magenta", Color = Colors.Magenta
                },
                new ColorOption {
                    Name = "Orange", Color = Colors.Orange
                },
                new ColorOption {
                    Name = "Purple", Color = Colors.Purple
                },
                new ColorOption {
                    Name = "Red", Color = Colors.Red
                },
                new ColorOption {
                    Name = "White", Color = Colors.White
                }
            };
        }
 protected bool Equals(ColorOption other)
 {
     return string.Equals(Name, other.Name) && Color.Equals(other.Color);
 }
Exemple #4
0
 protected bool Equals(ColorOption other)
 {
     return(string.Equals(Name, other.Name) && Color.Equals(other.Color));
 }