Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Log.Write("Please enter your MySQL database host");
            Host = Console.ReadLine();

            Log.Write("Please enter your MySQL username");
            Username = Console.ReadLine();

            Log.Write("Please enter your MySQL password");
            Password = Console.ReadLine();

            Log.Write("Please enter your Firewind Database name");
            FirewindDb = Console.ReadLine();

            Log.Write("Please enter your Phoenix Database name");
            PhoenixDb = Console.ReadLine();

            Log.Write("Please press enter to proceed.");
            Console.ReadLine();

            DatabaseConfig PhoenixDbConfig = new DatabaseConfig(Host, 3306, Username, Password, PhoenixDb, 1, 5, 10);
            DatabaseConfig ButterflyDbConfig = new DatabaseConfig(Host, 3306, Username, Password, FirewindDb, 1, 5, 10);

            Converter = new Converter(PhoenixDbConfig, ButterflyDbConfig);
            Converter.Start();
        }
Exemplo n.º 2
0
 public Converter(DatabaseConfig P, DatabaseConfig B)
 {
     this.PhoenixDbConfig = P;
     this.ButterflyDbConfig = B;
 }