Commit e5f501f
Changed files (3)
product
desktop.ui
views
controls
support
product/desktop.ui/views/controls/ObjectExtensions.cs
@@ -18,15 +18,14 @@ namespace solidware.financials.windows.ui.views.controls
{
return value is T;
}
- public static T As<T>(this object value)
+
+ static public T As<T>(this object value)
{
if (value is T)
- return (T)value;
- if(value is Observable)
- {
- return (T)((Observable)value).Value;
- }
- return (T)Convert.ChangeType(value, typeof (T));
+ return (T) value;
+ if (value is Observable)
+ return (T) ((Observable) value).Value;
+ return (T) Convert.ChangeType(value, typeof (T));
}
}
}
\ No newline at end of file
product/desktop.ui/views/controls/Observable.cs
@@ -5,7 +5,7 @@ namespace solidware.financials.windows.ui.views.controls
{
public interface Observable<T> : Observable
{
- T Value { get; set; }
+ new T Value { get; set; }
void WhenChanged(Action observer);
}
support/default.build
@@ -66,7 +66,7 @@
</target>
<target name="run.test" depends="compile">
- <property name="xunit.cons.exe" value="${base.dir}/packages/Machine.Specifications.0.4.9.0/tools/mspec-clr4.exe" />
+ <property name="xunit.cons.exe" value="${tools.dir}/mspec/mspec.exe" />
<exec program="${xunit.cons.exe}" workingdir="${tmp.dir}" commandline="${xunit.arguments}" />
</target>