ClaudiaIDE.Settings.Setting.ToFullPath C# (CSharp) Method

ToFullPath() public static method

public static ToFullPath ( string path ) : string
path string
return string
        public static string ToFullPath(string path)
        {
            var assemblylocation = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
            if (!Path.IsPathRooted(path))
            {
                path = Path.Combine(string.IsNullOrEmpty(assemblylocation) ? "" : assemblylocation, path);
            }
            return path;
        }

Usage Example

Example #1
0
 private void Load(Properties props)
 {
     Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();
     BackgroundImagesDirectoryAbsolutePath = Setting.ToFullPath((string)props.Item("BackgroundImageDirectoryAbsolutePath").Value, DefaultBackgroundFolder);
     BackgroundImageAbsolutePath           = Setting.ToFullPath((string)props.Item("BackgroundImageAbsolutePath").Value, DefaultBackgroundImage);
     Opacity                     = (double)props.Item("Opacity").Value;
     PositionHorizon             = (PositionH)props.Item("PositionHorizon").Value;
     PositionVertical            = (PositionV)props.Item("PositionVertical").Value;
     ImageStretch                = (ImageStretch)props.Item("ImageStretch").Value;
     UpdateImageInterval         = (TimeSpan)props.Item("UpdateImageInterval").Value;
     Extensions                  = (string)props.Item("Extensions").Value;
     ImageBackgroundType         = (ImageBackgroundType)props.Item("ImageBackgroundType").Value;
     ImageFadeAnimationInterval  = (TimeSpan)props.Item("ImageFadeAnimationInterval").Value;
     LoopSlideshow               = (bool)props.Item("LoopSlideshow").Value;
     ShuffleSlideshow            = (bool)props.Item("ShuffleSlideshow").Value;
     MaxWidth                    = (int)props.Item("MaxWidth").Value;
     MaxHeight                   = (int)props.Item("MaxHeight").Value;
     SoftEdgeX                   = (int)props.Item("SoftEdgeX").Value;
     SoftEdgeY                   = (int)props.Item("SoftEdgeY").Value;
     ExpandToIDE                 = (bool)props.Item("ExpandToIDE").Value;
     ViewBoxPointX               = (double)props.Item("ViewBoxPointX").Value;
     ViewBoxPointY               = (double)props.Item("ViewBoxPointY").Value;
     IsLimitToMainlyEditorWindow = (bool)props.Item("IsLimitToMainlyEditorWindow").Value;
     TileMode                    = (TileMode)props.Item("TileMode").Value;
     ViewPortHeight              = (double)props.Item("ViewPortHeight").Value;
     ViewPortWidth               = (double)props.Item("ViewPortWidth").Value;
     ViewPortPointX              = (double)props.Item("ViewPortPointX").Value;
     ViewPortPointY              = (double)props.Item("ViewPortPointY").Value;
 }
All Usage Examples Of ClaudiaIDE.Settings.Setting::ToFullPath