Beispiel #1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="ChooseLangProjectDialog"/> class.
 /// Used for the designer
 /// </summary>
 /// ------------------------------------------------------------------------------------
 private ChooseLangProjectDialog()
 {
     InitializeComponent();
     //hide the FLExBridge related link and image if unavailable
     m_linkOpenBridgeProject.Visible = File.Exists(FLExBridgeHelper.FullFieldWorksBridgePath());
     pictureBox1.Visible             = File.Exists(FLExBridgeHelper.FullFieldWorksBridgePath());
 }
Beispiel #2
0
        private static bool CheckForFlexBridgeInstalled(UIItemDisplayProperties display)
        {
            var fullName = FLExBridgeHelper.FullFieldWorksBridgePath();

            display.Enabled = FileUtils.FileExists(fullName) && AssemblyName.GetAssemblyName(fullName).Version.Minor >= 5;
            display.Visible = display.Enabled;
            return(display.Visible);
        }