Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [TypeConverter(typeof(ExpandableObjectConverter))]
- public class LevelIIColorCollection : ICloneable
- {
- [Browsable(false), XmlIgnore]
- public System.Windows.Media.Brush[] MyBrushes;
- public LevelIIColorCollection()
- {
- MyBrushes = new System.Windows.Media.Brush[2];
- }
- public object Clone()
- {
- LevelIIColorCollection newCollection = new LevelIIColorCollection()
- {
- Level01Color = Level01Color,
- Level02Color = Level02Color
- };
- return newCollection;
- }
- public override string ToString()
- {
- return string.Empty;
- }
- [XmlIgnore]
- [Display(Name = "Level 1 Color", Order = 6, GroupName = "Parameters")]
- public Brush Level01Color
- {
- get { return MyBrushes[0]; }
- set { MyBrushes[0] = value; }
- }
- [Browsable(false)]
- public string Level01ColorSerializable
- {
- get { return Serialize.BrushToString(Level01Color); }
- set { Level01Color = Serialize.StringToBrush(value); }
- }
- [XmlIgnore]
- [Display(Name = "Level 2 Color", Order = 7, GroupName = "Parameters")]
- public Brush Level02Color
- {
- get { return MyBrushes[1]; }
- set { MyBrushes[1] = value; }
- }
- [Browsable(false)]
- public string Level02ColorSerializable
- {
- get { return Serialize.BrushToString(Level02Color); }
- set { Level02Color = Serialize.StringToBrush(value); }
- }
- }
- *********************************CREATE PROPERTY TYPE FOR INDICATOR TO USE*********************************
- [Display(Name = "Level II Colors", Description = "Level II Colors", Order = 6, GroupName = "Parameters")]
- public LevelIIColorCollection LevelIIColors
- { get; set; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement