Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkors committed Feb 23, 2012
2 parents 7d85f68 + c00fb1b commit 336ab83
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions ParApply.Business/ParApply.Business.csproj
Expand Up @@ -50,6 +50,7 @@
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="Services\IWebRequestFactory.cs" />
<Compile Include="StedParser.cs" />
<Compile Include="Services\ParaplyService.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand Down
10 changes: 10 additions & 0 deletions ParApply.Business/Services/IWebRequestFactory.cs
@@ -0,0 +1,10 @@
using System;
using System.Net;

namespace ParApply.Business
{
public interface IWebRequestFactory
{
HttpWebRequest CreateHttpWebRequest(Uri uri);
}
}
3 changes: 1 addition & 2 deletions ParApply.Business/Services/RestService.cs
Expand Up @@ -9,10 +9,9 @@ namespace ParApply.Business
{
public abstract class RestService<T> where T : class
{

protected void Get(Uri uri, Action<Result<IEnumerable<T>>> callback)
{
var webRequest = (HttpWebRequest) WebRequest.Create(uri);
var webRequest = (HttpWebRequest) WebRequest.Create(uri);


webRequest.BeginGetResponse(delegate(IAsyncResult responseResult)
Expand Down
5 changes: 2 additions & 3 deletions ParApply.WP7/MainPage.xaml.cs
Expand Up @@ -32,6 +32,8 @@ public MainPage()
_backgroundWorker = new BackgroundWorker();
_backgroundWorker.DoWork += ParseNorgeFile;
_backgroundWorker.RunWorkerCompleted += SetParsingCompleted;

// Stop dreaming about IoC-containers!
_norgeParser = new StedParser();
_norge = new Noreg();
_paraplyService = new ParaplyService();
Expand Down Expand Up @@ -63,14 +65,11 @@ private void TryUpdateData()
{
if(_parsingComplete && _myLocation != null)
{

_myLocation = new GeoCoordinate(59.923861, 10.7579014);
_sted = _norge.FindClosestSted(_myLocation);
_yrService.GetYrData(_sted, UpdateUI);
}
}


private void SaveCurrentPosition(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e)
{
_isFirstLookup = _myLocation == null;
Expand Down
4 changes: 2 additions & 2 deletions ParApply.WP7/Properties/AssemblyInfo.cs
Expand Up @@ -32,6 +32,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: NeutralResourcesLanguageAttribute("nb-NO")]

0 comments on commit 336ab83

Please sign in to comment.