Beispiel #1
0
 public static List<OutputLine> Translate(string algorithm)
 {
     try
     {
         StringSplitter stringSplitter = new StringSplitter(algorithm);
         Parcer p = new Parcer(stringSplitter);
         Generator g = new Generator(p.Parse());
         return g.Lines;
     }
     catch (IndexOutOfRangeException e)
     {
         throw new ArgumentException("Error in algorithm: \""+algorithm+"\"");
     }
 }
Beispiel #2
0
 static async Task <List <Car> > GetCarsAsync(CookieContainer cookie, Query query)
 {
     return(await Task.Run(() => Parcer.GetAllCars(cookie, query)));
 }
Beispiel #3
0
 private void listBox1_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     Parcer.ExcelSave2010(listBox1.SelectedItem.ToString(), @"C:\Обработки\Temp\");
     string[] dirs3 = Directory.GetFiles(@"C:\Обработки\Temp\", "*.xlsx");
     listBox2.ItemsSource = dirs3;
 }