GetApplicationFolder() public static method

public static GetApplicationFolder ( ) : String
return String
コード例 #1
0
        //*************************************************************************
        //  Constructor: GraphMetricCalculationManager()
        //
        /// <summary>
        /// Initializes a new instance of the <see
        /// cref="GraphMetricCalculationManager" /> class.
        /// </summary>
        //*************************************************************************

        public GraphMetricCalculationManager()
        {
            m_oBackgroundWorker = null;

            // Set the path to the executable that calculates graph metrics using
            // the SNAP library.

            GraphMetricCalculatorBase.SetSnapGraphMetricCalculatorPath(
                Path.Combine(ApplicationUtil.GetApplicationFolder(),
                             GraphMetricCalculatorBase
                             .DefaultSnapGraphMetricCalculatorFileName));

            AssertValid();
        }
コード例 #2
0
        AddBuiltInGraphDataProviders
        (
            List <Object> oGraphDataProviders
        )
        {
            Debug.Assert(oGraphDataProviders != null);

            String sGraphDataProvidersFilePath = Path.Combine(
                ApplicationUtil.GetApplicationFolder(), GraphDataProvidersFileName);

            if (File.Exists(sGraphDataProvidersFilePath))
            {
                AddGraphDataProvidersFromFile(
                    sGraphDataProvidersFilePath, oGraphDataProviders);
            }
        }