Example #1
0
        void RegistryInit(string DefaultOysterAddress,int DefaultOysterConnectionPort, int DefaultOysterFilePort,string DefaultOysterDeviceID,string OysterDeviceFriendlyName, bool ManualConfiguration,
			RecordOptions.ScreenRecordType RecordType,
			string WindowTitleToRecord,
			ScreenEncoder.CapturePerformance ScreenCapturePerformance,
			RecordOptions.CameraSelection CamerasSelected,
			int MinutesToRecord, int SecondsToCountdown,
			string ScreenProfileDirectory, string ScreenWMVDirectory,
			RecordOptions.PrimaryCamera CameraPrimary)
        {
            m_sDefaultOysterDeviceAddress = (string)
                m_RegKey.GetValue("DefaultOysterDeviceAddress",DefaultOysterDeviceAddress);
            m_iDefaultOysterDeviceConnectionPort = (int)
                m_RegKey.GetValue("DefaultOysterDeviceConnectionPort",DefaultOysterDeviceConnectionPort);
            m_iDefaultOysterDeviceFilePort = (int)
                m_RegKey.GetValue("DefaultOysterDeviceFilePort",DefaultOysterDeviceFilePort);
            m_sDefaultOysterAddress = (string)
                m_RegKey.GetValue("DefaultOysterAddress",DefaultOysterAddress);
            m_iDefaultOysterConnectionPort = (int)
                m_RegKey.GetValue("DefaultOysterConnectionPort",DefaultOysterConnectionPort);
            m_iDefaultOysterFilePort = (int)
                m_RegKey.GetValue("DefaultOysterFilePort",DefaultOysterFilePort);
            m_sDefaultOysterDeviceID = (string)
                m_RegKey.GetValue("DefaultOysterDeviceID",DefaultOysterDeviceID);
            m_sOysterDeviceFriendlyName = (string)
                m_RegKey.GetValue("OysterDeviceFriendlyName",OysterDeviceFriendlyName);
            m_bManualConfiguration = bool.Parse((string)m_RegKey.GetValue("ManualConfiguration",ManualConfiguration.ToString()));
            m_ScreenRecordType = (RecordOptions.ScreenRecordType)
                System.Enum.Parse(typeof(RecordOptions.ScreenRecordType),
                (string)m_RegKey.GetValue("RecordType",RecordType.ToString()));
            m_sWindowTitleToRecord = (string)
                m_RegKey.GetValue("WindowTitleToRecord",WindowTitleToRecord);
            m_ScreenCapturePerformance = (ScreenEncoder.CapturePerformance)
                System.Enum.Parse(typeof(ScreenEncoder.CapturePerformance),
                (string)m_RegKey.GetValue("CapturePerformance",ScreenCapturePerformance.ToString()));
            m_CameraSelection = (RecordOptions.CameraSelection)
                System.Enum.Parse(typeof(RecordOptions.CameraSelection),
                (string)m_RegKey.GetValue("SelectedCamera",CamerasSelected.ToString()));
            m_iMinutesToRecord = (int)m_RegKey.GetValue("MinutesToRecord",MinutesToRecord);
            m_iMinutesToCountdown = (int)m_RegKey.GetValue("SecondsToCountdown",SecondsToCountdown);
            m_sProfileDirectory =
                (string)m_RegKey.GetValue("ProfileDirectory",ScreenProfileDirectory);
            m_sProfileDirectory = RemoveTrailingBackslashFromPath(m_sProfileDirectory);
            m_sWMVDirectory = (string) m_RegKey.GetValue("WMVDirectory",ScreenWMVDirectory);
            m_sWMVDirectory = RemoveTrailingBackslashFromPath(m_sWMVDirectory);
            m_PrimaryCamera = (RecordOptions.PrimaryCamera)
                System.Enum.Parse(typeof(RecordOptions.PrimaryCamera),
                (string)m_RegKey.GetValue("CameraPrimary",CameraPrimary.ToString()));
            m_bHasBeenSaved = bool.Parse((string)m_RegKey.GetValue("HasBeenSaved",false.ToString()));
        }
Example #2
0
 //            string[] CapturePerformanceNames;// = {"Extreme","Very High","High","Medium High","Medium","Low","Very Low"};
 public CapturePerformance(ScreenEncoder.CapturePerformance Performance, string Filename)
 {
     this.cp = Performance;
     m_sFilename = Filename;
 }