public OfftracksViewModel(MainViewModel mainModel)
 {
     _colors = new Stack <Color>(new Color[]
     {
         Colors.White,
         Colors.Green,
         Colors.Pink,
         Colors.Orange,
         Colors.LightBlue,
         Colors.Gold,
         Colors.Fuchsia,
         Colors.LimeGreen,
         Colors.Blue,
         Colors.Red,
     });
     _lines       = new Dictionary <int, DriverOfftrackLine>();
     _mainModel   = mainModel;
     _limitsModel = new OfftrackLimitsViewModel(this);
 }
 public OfftracksViewModel(MainViewModel mainModel)
 {
     _colors = new Stack<Color>(new Color[]
                                {
                                    Colors.White,
                                    Colors.Green,
                                    Colors.Pink,
                                    Colors.Orange,
                                    Colors.LightBlue,
                                    Colors.Gold,
                                    Colors.Fuchsia,
                                    Colors.LimeGreen,
                                    Colors.Blue,
                                    Colors.Red,
                                });
     _lines = new Dictionary<int, DriverOfftrackLine>();
     _mainModel = mainModel;
     _limitsModel = new OfftrackLimitsViewModel(this);
 }