Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ZeroitMetroTracker" /> class.
        /// </summary>
        public ZeroitMetroTracker()
        {
            this._paths            = new MetroTrackerPathCollection();
            this._pens             = new Dictionary <MetroTrackerPath, Pen>();
            this._brushes          = new Dictionary <MetroTrackerPath, Brush>();
            this._nameBrushes      = new Dictionary <MetroTrackerPath, Brush>();
            this._BorderColor      = Design.MetroColors.LightBorder;
            this._GridColor        = Design.MetroColors.PopUpBorder;
            this._Style            = Design.Style.Light;
            this._GridStyle        = Design.GridStyle.Crossed;
            this._GridSize         = 10;
            this._ShowPathNames    = true;
            this._ShowCustomValue  = true;
            this._ShowedValueCount = 1000;
            this._AutoStyle        = true;
            this.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
            this.UpdateStyles();
            this.BackColor = Color.White;
            this._paths    = new MetroTrackerPathCollection();
            ZeroitMetroTracker metroTracker = this;

            this.Paths.ItemAdded += new EventHandler <MetroTrackerPathCollectionEventArgs>(metroTracker.Paths_Added);
            ZeroitMetroTracker metroTracker1 = this;

            this.Paths.ItemRemoving += new EventHandler <MetroTrackerPathCollectionEventArgs>(metroTracker1.Paths_Removing);
            this._pens        = new Dictionary <MetroTrackerPath, Pen>();
            this._brushes     = new Dictionary <MetroTrackerPath, Brush>();
            this._nameBrushes = new Dictionary <MetroTrackerPath, Brush>();
        }
 public MetroTrackerPathCollection()
 {
     MetroTrackerPathCollection.__ENCAddToList(this);
 }