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

            BudgetPrice = result.Item1;
            BudgetPath  = result.Item2;
        }
예제 #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;
        }
예제 #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;
     }
 }
예제 #4
0
 private void ReadFile(object obj)
 {
     LoadDataMProp.ReadFile();
 }