private void initializeComponents()
        {
            FileReader f = new FileReader();

            f.ReadFile(anomalyCsvPath);
            this.fdm = new FlightDetectorModel(f.LinesOfData, "localhost", 5400, anomalyCsvPath, normalCsvPath);

            if (anomalies != null)   //if there is anomalies
            {
                fdm.AnomaliesList     = this.anomalies.anomaliesList;
                fdm.CorrlativeCircles = this.anomalies.anomaliesRangeCircles;
            }


            ProgressBarVM pbvm = new ProgressBarVM(fdm);

            ProgressBar.Pbvm = pbvm;

            // create VM for the navigator
            NavigatorStateVM nsvm = new NavigatorStateVM(fdm);

            Navigator.Nsvm = nsvm;

            // create VM for the dataInfo
            DataInfoVM divm = new DataInfoVM(fdm);

            DataInfo.Divm = divm;

            // create VM for the grpah
            GraphVM gvm = new GraphVM(fdm);

            graph.Gvm = gvm;
        }
 public NavigatorStateVM(FlightDetectorModel fdMoodel)
 {
     this.fdm = fdMoodel;
     this.fdm.PropertyChanged += delegate(object sender, PropertyChangedEventArgs e)
     {
         NotifyPropertyChanged("VM_" + e.PropertyName);
     };
 }
 public ProgressBarVM(FlightDetectorModel fdm)
 {
     this.fdm = fdm;
     this.fdm.PropertyChanged += delegate(object sender, PropertyChangedEventArgs e)
     {
         NotifyPropertyChanged("VM_" + e.PropertyName);
     };
 }