diff --git a/AngleSharp.Samples.App/AngleSharp.Samples.App.csproj b/AngleSharp.Samples.App/AngleSharp.Samples.App.csproj index feed53a..d2e993d 100644 --- a/AngleSharp.Samples.App/AngleSharp.Samples.App.csproj +++ b/AngleSharp.Samples.App/AngleSharp.Samples.App.csproj @@ -41,13 +41,13 @@ - + False - ..\packages\AngleSharp.0.8.4.1\lib\net45\AngleSharp.dll + ..\packages\AngleSharp.0.8.5\lib\net45\AngleSharp.dll - + False - ..\packages\AngleSharp.Scripting.JavaScript.0.1.5\lib\net45\AngleSharp.Scripting.JavaScript.dll + ..\packages\AngleSharp.Scripting.JavaScript.0.1.6\lib\net45\AngleSharp.Scripting.JavaScript.dll False diff --git a/AngleSharp.Samples.App/ViewModels/CssRuleViewModel.cs b/AngleSharp.Samples.App/ViewModels/CssRuleViewModel.cs index fbff6cb..15b1e6a 100644 --- a/AngleSharp.Samples.App/ViewModels/CssRuleViewModel.cs +++ b/AngleSharp.Samples.App/ViewModels/CssRuleViewModel.cs @@ -10,31 +10,25 @@ readonly String typeName; readonly String name; - private CssRuleViewModel(String typeName) + private CssRuleViewModel(Type type) { this.children = new ObservableCollection(); - this.typeName = typeName; + this.typeName = type.Name; } private CssRuleViewModel(Object o) - : this(o.GetType().Name) + : this(o.GetType()) { } private CssRuleViewModel(String name, String value) - : this(name, new PseudoValue(value)) - { - } - - private CssRuleViewModel(String name, ICssValue value) - : this("CSSProperty") { this.name = name; this.children.Add(new CssRuleViewModel(value)); } public CssRuleViewModel(ICssRule rule) - : this((Object)rule) + : this(rule.GetType()) { switch (rule.Type) { @@ -91,12 +85,14 @@ { } - public CssRuleViewModel(ICssValue value) - : this("CSSValue") + public CssRuleViewModel(String value) + : this(typeof(CSSValue)) { - name = value.CssText; + name = value; } + struct CSSValue { } + void Populate(ICssFontFaceRule font) { AddIfNotEmpty("Family", font.Family); @@ -141,24 +137,5 @@ { get { return children; } } - - class PseudoValue : ICssValue - { - public PseudoValue(String value) - { - CssText = value; - } - - public CssValueType Type - { - get { return CssValueType.Custom; } - } - - public String CssText - { - get; - private set; - } - } } } diff --git a/AngleSharp.Samples.App/ViewModels/ReplViewModel.cs b/AngleSharp.Samples.App/ViewModels/ReplViewModel.cs index 5b7f66c..4088689 100644 --- a/AngleSharp.Samples.App/ViewModels/ReplViewModel.cs +++ b/AngleSharp.Samples.App/ViewModels/ReplViewModel.cs @@ -1,8 +1,8 @@ namespace Samples.ViewModels { using AngleSharp.Dom; - using AngleSharp.Scripting; using AngleSharp.Scripting.JavaScript; + using AngleSharp.Services.Scripting; using System; using System.Collections.ObjectModel; using System.Windows.Input; diff --git a/AngleSharp.Samples.App/packages.config b/AngleSharp.Samples.App/packages.config index fef1476..c3e75de 100644 --- a/AngleSharp.Samples.App/packages.config +++ b/AngleSharp.Samples.App/packages.config @@ -1,7 +1,7 @@  - - + + diff --git a/AngleSharp.Samples.Demos/AngleSharp.Samples.Demos.csproj b/AngleSharp.Samples.Demos/AngleSharp.Samples.Demos.csproj index 0e43c47..7034990 100644 --- a/AngleSharp.Samples.Demos/AngleSharp.Samples.Demos.csproj +++ b/AngleSharp.Samples.Demos/AngleSharp.Samples.Demos.csproj @@ -33,13 +33,11 @@ 4 - - False - ..\packages\AngleSharp.0.8.4.1\lib\net45\AngleSharp.dll + + ..\packages\AngleSharp.0.8.5\lib\net45\AngleSharp.dll - - False - ..\packages\AngleSharp.Scripting.JavaScript.0.1.5\lib\net45\AngleSharp.Scripting.JavaScript.dll + + ..\packages\AngleSharp.Scripting.JavaScript.0.1.6\lib\net45\AngleSharp.Scripting.JavaScript.dll False diff --git a/AngleSharp.Samples.Demos/packages.config b/AngleSharp.Samples.Demos/packages.config index ce4aa8d..7f7f0c0 100644 --- a/AngleSharp.Samples.Demos/packages.config +++ b/AngleSharp.Samples.Demos/packages.config @@ -1,6 +1,6 @@  - - + + \ No newline at end of file