コード例 #1
0
        private static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            log.Info("============== Application Start ==============");
            CallEventHandler.CreateCall(args);
        }
コード例 #2
0
 public static void CreateCall(string[] args)
 {
     if (args.Length < 1)
     {
         AppSetup();                                                 // Add registry entry and start setup if application starts without arguments
     }
     else
     {
         string phoneNumber = CallEventHandler.NumberToCall(args);   // Phone number to call
         Configuration.Load();                                       // Loads configuration file
         InitializeTAPI();                                           // Initialize TAPI
         CheckForTAPILineErrors();                                   // Checks for line errors
         InitiateCall(phoneNumber);                                  // Initiates call
     }
 }