public MainWindowViewModel()
        {
            IsChecked1 = new Boolean[4];
            IsChecked2 = new Boolean[4];
            IsChecked3 = new Boolean[4];
            IsChecked4 = new Boolean[4];
            IsChecked5 = new Boolean[4];
            IsChecked6 = new Boolean[4];

            xCoordinates = new List<float>();
            yCoordinates = new List<float>();
            _isInTurns = new List<int>();
            _trackSections = new List<int>();
            CollectionLaps = new System.Collections.ObjectModel.ObservableCollection<string>();
            CollectionSections = new ObservableCollection<string>();
            SelectedLap = "All Laps";
            SelectedSection = "All Sections";

            string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\AssettoCorsaTelemetry\\";
            string fileName = DateTime.Now.ToString("MM-dd-yyyy_HH-mm") + ".csv";
            _filepath = System.IO.Path.Combine(path, fileName);

            Type t = typeof(Physics);
            _physicsMembers = t.GetFields(BindingFlags.Public | BindingFlags.Instance);
            Type type = typeof(Graphics);
            _graphicsMembers = type.GetFields(BindingFlags.Public | BindingFlags.Instance);

            bool isExists = System.IO.Directory.Exists(path);

            if (!isExists)
                System.IO.Directory.CreateDirectory(path);

            using (StreamWriter f = File.AppendText(_filepath))
            {
                foreach (var physMember in _physicsMembers)
                {
                    if (physMember.Name != "PacketId")
                        f.Write(physMember.Name + ",");
                }
                foreach (var graphMember in _graphicsMembers)
                {
                    if (graphMember.Name != "PacketId")
                        f.Write(graphMember.Name + ",");
                }
                f.Write("\r\n");
            }

            var sdk = new AcSdk.AcSdk();
            sdk.UpdateFrequency = 5;

            sdk.StaticInfoUpdated += StaticInfoUpdated;
            sdk.Updated += Updated;

            sdk.Start();
        }
        public MainWindowViewModel()
        {
            IsChecked1 = new Boolean[4];
            IsChecked2 = new Boolean[4];
            IsChecked3 = new Boolean[4];
            IsChecked4 = new Boolean[4];
            IsChecked5 = new Boolean[4];
            IsChecked6 = new Boolean[4];

            xCoordinates       = new List <float>();
            yCoordinates       = new List <float>();
            _isInTurns         = new List <int>();
            _trackSections     = new List <int>();
            CollectionLaps     = new System.Collections.ObjectModel.ObservableCollection <string>();
            CollectionSections = new ObservableCollection <string>();
            SelectedLap        = "All Laps";
            SelectedSection    = "All Sections";

            string path     = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\AssettoCorsaTelemetry\\";
            string fileName = DateTime.Now.ToString("MM-dd-yyyy_HH-mm") + ".csv";

            _filepath = System.IO.Path.Combine(path, fileName);

            Type t = typeof(Physics);

            _physicsMembers = t.GetFields(BindingFlags.Public | BindingFlags.Instance);
            Type type = typeof(Graphics);

            _graphicsMembers = type.GetFields(BindingFlags.Public | BindingFlags.Instance);

            bool isExists = System.IO.Directory.Exists(path);

            if (!isExists)
            {
                System.IO.Directory.CreateDirectory(path);
            }

            using (StreamWriter f = File.AppendText(_filepath))
            {
                foreach (var physMember in _physicsMembers)
                {
                    if (physMember.Name != "PacketId")
                    {
                        f.Write(physMember.Name + ",");
                    }
                }
                foreach (var graphMember in _graphicsMembers)
                {
                    if (graphMember.Name != "PacketId")
                    {
                        f.Write(graphMember.Name + ",");
                    }
                }
                f.Write("\r\n");
            }

            var sdk = new AcSdk.AcSdk();

            sdk.UpdateFrequency = 5;

            sdk.StaticInfoUpdated += StaticInfoUpdated;
            sdk.Updated           += Updated;

            sdk.Start();
        }