- Timestamp:
- Jun 4, 2010, 10:19:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs
r772 r788 3 3 using System.Collections; 4 4 using System.Data; 5 using System.Text;6 5 using System.Diagnostics; 7 using System.Net;8 using System.Net.Sockets;9 using System.Threading;10 using System.IO;11 6 using IndianHealthService.BMXNet; 12 using System.Configuration;13 7 using Mono.Options; 8 using System.Runtime.InteropServices; 14 9 15 10 namespace IndianHealthService.ClinicalScheduling … … 259 254 && m_VerifyCode != String.Empty) 260 255 m_ConnectInfo.LoadConnectInfo(m_Server, m_Port, m_AccessCode, m_VerifyCode); 261 262 256 else if (m_Server != String.Empty && m_Port != 0) 263 m_ConnectInfo.LoadConnectInfo(m_Server, m_Port); 264 257 m_ConnectInfo.LoadConnectInfo(m_Server, m_Port, "", ""); 265 258 else 266 259 m_ConnectInfo.LoadConnectInfo(); 267 260 } 268 261 bRetry = false; … … 347 340 } 348 341 349 [STAThread()] static void Main(string[] args) 350 { 342 //To write to the console 343 [DllImport("kernel32.dll")] 344 static extern bool AttachConsole(int dwProcessId); 345 private const int ATTACH_PARENT_PROCESS = -1; 346 347 [STAThread()] 348 static void Main(string[] args) 349 { 350 #if DEBUG 351 // Print console messages to console if launched from console 352 AttachConsole(ATTACH_PARENT_PROCESS); 353 #endif 351 354 try 352 { 355 { 353 356 //Store the current manager 354 357 _current = new CGDocumentManager(); 355 358 359 //Get command line options; store in private variables 356 360 var opset = new OptionSet () { 357 361 { "s=", s => _current.m_Server = s },
Note:
See TracChangeset
for help on using the changeset viewer.