Beispiel #1
0
        private void Update(object sender, FlightControllerEventArgs e)
        {
            if (dc == null)
            {
                dc = fc.getDataCalculations;
            }
            for (int i = 0; i < Names.Length; i++)
            {
                datalists[Names[i]].AddLast(new DataPoint(mc.getCurrentTimeInMilisecs(), float.Parse(e.GetData(Names[i]))));
            }
            NotifyPropertyChanged("list");

            //NotifyPropertyChanged("CorralatedList");
            // NotifyPropertyChanged("CorralatedName");
            timeStamp++;
        }
Beispiel #2
0
 public int timePrecents()
 {
     if (media.getTotalTimeInMilisecs() != 0)
     {
         float precents = (media.getCurrentTimeInMilisecs() * 100 / media.getTotalTimeInMilisecs());
         return((int)precents);
     }
     return(0);
 }