-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
30 lines (28 loc) · 844 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Aspose.Alphabet;
using Aspose.Converter;
using Aspose.Keypad;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Aspose
{
class Program
{
static void Main(string[] args)
{
ILocale locale = new EnglishLocale();
IKeypad keypad = new T9Keypad(locale);
var tasks = new List<Task>();
foreach (var file in FileConverter.InputFiles)
{
var task = Task.Factory.StartNew(() =>
new FileConverter(keypad, file).Convert()
);
tasks.Add(task);
}
Task.WaitAll(tasks.ToArray());
Console.WriteLine("See .in and .out files in /bin/debug\r\nPress enter to exit.");
Console.ReadLine();
}
}
}