private void FindBudgetPath() { Tuple <int, List <string> > result = LoadDataMProp.BudgetPath(); BudgetPrice = result.Item1; BudgetPath = result.Item2; }
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; }
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; } }
private void ReadFile(object obj) { LoadDataMProp.ReadFile(); }