public object Clone() { MyServerList list = new MyServerList(); list.originalServerAE = originalServerAE; list.originalServerIP = originalServerIP; list.originalServerPort = originalServerPort; list.currentServerAE = currentServerAE; list.preConfigured = preConfigured; list.serverArrayList = new ArrayList(); foreach (MyServer server in serverList) { list.serverArrayList.Add(server.Clone()); } return(list); }
public MyAppSettings() { querySCPServers = new MyServerList(); queryMWLServers = new MyServerList(); storeServers = new MyServerList(); clientAE = defaultClientAE; clientCertificate = string.Empty; privateKey = string.Empty; privateKeyPassword = "******"; logLowLevel = true; showHelpOnStart = true; #if LTV20_CONFIG if (Is64Bit()) { printerName = "LEADTOOLS 20 PrintToPACS 64-bit"; } else { printerName = "LEADTOOLS 20 PrintToPACS 32-bit"; } #endif string strCommonLocation = Path.GetDirectoryName(Application.ExecutablePath); strCommonLocation = Path.GetDirectoryName(strCommonLocation); strCommonLocation = Path.GetDirectoryName(strCommonLocation); strCommonLocation = Path.GetDirectoryName(strCommonLocation); strCommonLocation += "\\bin\\common\\xml"; if (File.Exists(strCommonLocation + "\\" + "SC-basic-ds.xml")) { secondaryCapturePath = strCommonLocation + "\\" + "SC-basic-ds.xml"; } else { secondaryCapturePath = ""; } secondaryCaptureCompression = DicomImageCompressionType.None; if (File.Exists(strCommonLocation + "\\" + "SC-Multi-Frame True Color Image-ds.xml")) { secondaryCaptureColorPath = strCommonLocation + "\\" + "SC-Multi-Frame True Color Image-ds.xml"; } else { secondaryCaptureColorPath = ""; } secondaryCaptureColorCompression = DicomImageCompressionType.None; if (File.Exists(strCommonLocation + "\\" + "SC-Multi-Frame Grayscale Byte-ds.xml")) { secondaryCaptureGrayPath = strCommonLocation + "\\" + "SC-Multi-Frame Grayscale Byte-ds.xml"; } else { secondaryCaptureGrayPath = ""; } secondaryCaptureGrayCompression = DicomImageCompressionType.None; if (File.Exists(strCommonLocation + "\\" + "EncapsulatedPDF-Template-ds.xml")) { PdfPath = strCommonLocation + "\\" + "EncapsulatedPDF-Template-ds.xml"; } else { PdfPath = ""; } TempDir = ""; UseResample = false; clientPort = 1000; selectedtype = DicomClassType.SCImageStorage; autodelete = false; capturetype = CaptureType.FullScreen; DefaultSCPServer = 0; DefaultMWLServer = 0; DefaultStoreServer = 0; wiaVersion = 0; if (Is64Bit()) { DataPath = MySettings.GetFolderPath() + "\\SerializedData_64.ser"; } else { DataPath = MySettings.GetFolderPath() + "\\SerializedData_32.ser"; } FirstRun = true; LastSelectedIndex = -1; }