public ServiceWrapper() {
			RemotingClient.OpenDentBusinessIsLocal = true;

			// Connect to the local mysql server.
			DataConnection connection = new DataConnection();
			connection.SetDb("localhost", "opendental", "root", "", "root", "", DatabaseType.MySql);

			service = new OpenDentalService();
			thread = new Thread((ThreadStart)delegate() {
				service.ServiceWorkerMethod();
			});
		}
Example #2
0
        public ServiceWrapper()
        {
            RemotingClient.OpenDentBusinessIsLocal = true;

            // Connect to the local mysql server.
            DataConnection connection = new DataConnection();

            connection.SetDb("localhost", "opendental", "root", "", "root", "", DatabaseType.MySql);

            service = new OpenDentalService();
            thread  = new Thread((ThreadStart) delegate() {
                service.ServiceWorkerMethod();
            });
        }