static void PrintBuildInfo() { FC2Version version = ManagedUtilities.libraryVersion; StringBuilder newStr = new StringBuilder(); newStr.AppendFormat( "FlyCapture2 library version: {0}.{1}.{2}.{3}\n", version.major, version.minor, version.type, version.build); Console.WriteLine(newStr); }
/// <summary> /// Get the information about the library used /// </summary> /// <returns>The library info</returns> public static string GetBuildInfo() { FC2Version version = ManagedUtilities.libraryVersion; StringBuilder newStr = new StringBuilder(); newStr.AppendFormat( "FlyCapture2 library version: {0}.{1}.{2}.{3}\n", version.major, version.minor, version.type, version.build); string newString = newStr.ToString(); return(newString); }
private bool InitializeUI() { Debug.Assert(m_camera != null, "The current camera is null."); Debug.Assert(m_camInfo != null, "The current camera information is null."); FC2Version version = ManagedUtilities.libraryVersion; string defaultTitle = string.Format( "FlyCapture2 {0}.{1}.{2}.{3}", version.major, version.minor, version.type, version.build); SetTitle(defaultTitle); CreatePages(); return(true); }
private void InitializeCameraSelectionData() { HideGigEInformation(); m_busMgr = new ManagedBusManager(); m_cameraInfoPanel = new CameraInformationDisplayPanel(); m_cameraInfoDisplayPanel.Controls.Add(m_cameraInfoPanel); m_GigEEnumerationIsDisabled = EnumerationController.IsEnumerationDisabled(InterfaceType.GigE); m_gigEInfoPanel = new GigEInformationDisplayPanel(); m_gigeInfoDisplayPanel.Controls.Add(m_gigEInfoPanel); m_activeDialogs = new Dictionary <uint, DialogHolder>(); m_timer = new System.Windows.Forms.Timer(); m_timer.Interval = 2000; m_timer.Tick += new EventHandler(m_timer_Tick); try { m_busResetHandle = m_busMgr.RegisterCallback(OnBusReset, ManagedCallbackType.BusReset, IntPtr.Zero); } catch (FC2Exception ex) { BasePage.ShowErrorMessageDialog("Error registering bus reset callback.", ex); ex.Dispose(); } m_isLadybugGUI = LadybugChecker.IsLadybugDLLPresent(); if (m_isLadybugGUI == true) { this.Text = "Ladybug Camera Selection"; } else { FC2Version version = ManagedUtilities.libraryVersion; this.Text = string.Format( "FlyCapture2 Camera Selection {0}.{1}.{2}.{3}", version.major, version.minor, version.type, version.build); } }