Esempio n. 1
0
        private void FindBudgetPath()
        {
            Tuple <int, List <string> > result = LoadDataMProp.BudgetPath();

            BudgetPrice = result.Item1;
            BudgetPath  = result.Item2;
        }
Esempio n. 2
0
        private void FindFastPath()
        {
            DateTime startTime = DateTime.ParseExact("2000-01-01 " + TimeStartWay, "yyyy-MM-dd HH:mm", System.Globalization.CultureInfo.InvariantCulture);
            Tuple <int, List <string> > result = LoadDataMProp.FastPath(startTime, Convert.ToInt32(StartPoint) - 1);

            SmallestTime = result.Item1;
            FastPath     = result.Item2;
        }
Esempio n. 3
0
 private void FindPaths(object obj)
 {
     LoadDataMProp.MakeGraph();
     if (LoadDataMProp.PathFound)
     {
         Thread threadLowBudgetPath = new Thread(FindBudgetPath);
         threadLowBudgetPath.Start();
         Thread threadFastPath = new Thread(FindFastPath);
         threadFastPath.Start();
     }
     else
     {
         System.Windows.MessageBox.Show("Маршрутов не найдено.");
         return;
     }
 }
Esempio n. 4
0
 private void ReadFile(object obj)
 {
     LoadDataMProp.ReadFile();
 }