public FileServerWinClient() { clsRegistry reg = new clsRegistry(); string time = reg.GetStringValue( Registry.LocalMachine, "SOFTWARE\\Goji solutions\\Field\\Watson\\", "StartCapture"); if (reg.strRegError == null) { m_startTime = DateTime.ParseExact(time, FMT, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal); } m_fieldGuid = reg.GetStringValue(Registry.LocalMachine, "SOFTWARE\\Goji solutions\\Field", "Guid"); if (reg.strRegError != null) { m_fieldGuid = "error no guid"; } uint x; x = reg.GetDWORDValue(Registry.LocalMachine, "SOFTWARE\\Goji solutions\\Field\\Streaming", "fifo_threshold"); if (reg.strRegError == null) { if (x > 2) { m_fifoFileThreshold = (int)x; } } // Get string value string strValue = reg.GetStringValue( Registry.LocalMachine, "SOFTWARE\\Goji solutions\\Field\\Watson", "WatsonStatus"); if (reg.strRegError == null && strValue == "running") { m_watsonRunning = true; } if (reg.strRegError == null && strValue == "stopped") { m_watsonRunning = false; } }
public void SetCallback(CallbackMessage p) { pCallback = p; clsRegistry reg = new clsRegistry(); uint x; x = reg.GetDWORDValue(Registry.LocalMachine, "SOFTWARE\\Goji solutions\\Field\\Streaming\\DropBox", "InitializeDropBoxOnStart"); if (reg.strRegError == null) { if (x == 1) { if (m_runDropBoxThread == null || m_runDropBoxThread.IsAlive == false) { m_runDropBoxThread = new Thread(RunBoxInitialize); m_runDropBoxThread.Start(); } } } }