public Globals() { // Set default values and initialize objects // PAGE 0 m_nTimerMax = 15; // PAGE 1 m_MWLServer = new DicomServer(); m_MWLServer.AETitle = "LEAD_SERVER"; m_MWLServer.Address = IPAddress.Parse("127.0.0.1"); m_MWLServer.Port = 104; m_strMWLClientAE = "LEAD_CLIENT"; // PAGE 2 m_nQueryType = 1; m_bCheckScheduledDate = false; m_bCheckModality = false; m_ScheduledDate = DateTime.Today; m_strModality = m_ModalityTable[0].m_strValue; m_strAccessionNumber = ""; m_strPatientID = ""; m_strPatientName = ""; m_strRequestedProcedureID = ""; // PAGE 3 & 4 m_TreeResult = new MyTreeView(); m_TreeResult.Dock = DockStyle.Fill; // Build the icon image list m_IconImageList = new ImageList(); m_IconImageList.Images.Add( new System.Drawing.Icon(typeof(Globals), "Resources.icoElement.ico")); m_IconImageList.Images.Add( new System.Drawing.Icon(typeof(Globals), "Resources.icoFolder.ico")); m_IconImageList.Images.Add( new System.Drawing.Icon(typeof(Globals), "Resources.icoMissing.ico")); m_IconImageList.Images.Add( new System.Drawing.Icon(typeof(Globals), "Resources.icoSequence.ico")); m_IconImageList.Images.Add( new System.Drawing.Icon(typeof(Globals), "Resources.icoWorklist.ico")); m_TreeResult.ImageList = m_IconImageList; // PAGE 5 m_DS = new MyDicomDataSet(); // Page 6 m_StorageServer = new DicomServer(); m_StorageServer.AETitle = "LEAD_SERVER"; m_StorageServer.Address = IPAddress.Parse("127.0.0.1"); m_StorageServer.Port = 104; m_strStorageClientAE = "LEAD_CLIENT"; m_bStoreOnServer = true; }
public void SetTreeView(ref MyTreeView tv) { m_TreeView = tv; }