- Timestamp:
- May 21, 2010, 9:03:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs
r627 r772 11 11 using IndianHealthService.BMXNet; 12 12 using System.Configuration; 13 using Mono.Options; 13 14 14 15 namespace IndianHealthService.ClinicalScheduling … … 28 29 private bool m_bExitOK = true; 29 30 public string m_sHandle = "0"; 31 private string m_AccessCode=""; 32 private string m_VerifyCode=""; 33 private string m_Server=""; 34 private int m_Port=0; 30 35 31 36 //M Connection member variables … … 251 256 else 252 257 { 253 //Use autologin 254 _current.m_ConnectInfo.LoadConnectInfo(); 255 } 258 if (m_Server != String.Empty && m_Port != 0 && m_AccessCode != String.Empty 259 && m_VerifyCode != String.Empty) 260 m_ConnectInfo.LoadConnectInfo(m_Server, m_Port, m_AccessCode, m_VerifyCode); 261 262 else if (m_Server != String.Empty && m_Port != 0) 263 m_ConnectInfo.LoadConnectInfo(m_Server, m_Port); 264 265 else 266 m_ConnectInfo.LoadConnectInfo(); 267 } 256 268 bRetry = false; 257 269 } … … 292 304 293 305 //Set application context 294 m_ds.SetStatus("Setting Application Context ...");306 m_ds.SetStatus("Setting Application Context to BSDXRPC..."); 295 307 m_ds.Refresh(); 296 308 m_ConnectInfo.AppContext = "BSDXRPC"; … … 335 347 } 336 348 337 [STAThread()] static void Main( )349 [STAThread()] static void Main(string[] args) 338 350 { 339 351 try 340 { 341 //Store the current manager352 { 353 //Store the current manager 342 354 _current = new CGDocumentManager(); 343 355 356 var opset = new OptionSet () { 357 { "s=", s => _current.m_Server = s }, 358 { "p=", p => _current.m_Port = int.Parse(p) }, 359 { "a=", a => _current.m_AccessCode = a }, 360 { "v=", v => _current.m_VerifyCode = v } 361 }; 362 363 opset.Parse(args); 364 344 365 try 345 366 {
Note:
See TracChangeset
for help on using the changeset viewer.