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; }
public void Load() { var _DTE2 = (DTE2)ServiceProvider.GetService(typeof(DTE)); var props = _DTE2.Properties["ClaudiaIDE", "General"]; BackgroundImagesDirectoryAbsolutePath = Setting.ToFullPath(props.Item("BackgroundImageDirectoryAbsolutePath").Value); BackgroundImageAbsolutePath = Setting.ToFullPath(props.Item("BackgroundImageAbsolutePath").Value); Opacity = props.Item("Opacity").Value; PositionHorizon = (PositionH)props.Item("PositionHorizon").Value; PositionVertical = (PositionV)props.Item("PositionVertical").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; }
private void Load(Properties props) { 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; LoopSlideshow = (bool)props.Item("LoopSlideshow").Value; MaxWidth = (int)props.Item("MaxWidth").Value; MaxHeight = (int)props.Item("MaxHeight").Value; ExpandToIDE = (bool)props.Item("ExpandToIDE").Value; }
public void Load() { var _DTE2 = (DTE2)ServiceProvider.GetService(typeof(DTE)); var props = _DTE2.Properties["ClaudiaIDE", "General"]; 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; MaxWidth = (int)props.Item("MaxWidth").Value; MaxHeight = (int)props.Item("MaxHeight").Value; ExpandToIDE = (bool)props.Item("ExpandToIDE").Value; }