Permalink
Browse files

General refactoring

  • Loading branch information...
soreygarcia committed Feb 10, 2014
1 parent 03bb8e5 commit f98b0fe266b22d1a0d877472ad972537759de5ba
@@ -55,7 +55,7 @@
</ItemGroup>
<ItemGroup>
<Reference Include="SQLite.Net">
- <HintPath>..\packages\SQLite.Net-PCL.2.0.2\lib\portable-net4+sl4+wp7+win8+monotouch+MonoAndroid\SQLite.Net.dll</HintPath>
+ <HintPath>..\packages\SQLite.Net-PCL.2.1.0\lib\portable-net4+sl4+wp7+win8+monotouch+MonoAndroid\SQLite.Net.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
@@ -3,5 +3,5 @@
<package id="Microsoft.Bcl" version="1.1.6" targetFramework="portable-net45+wp80+MonoAndroid10+MonoTouch10" />
<package id="Microsoft.Bcl.Build" version="1.0.13" targetFramework="portable-net45+wp80+MonoAndroid10+MonoTouch10" />
<package id="Microsoft.Net.Http" version="2.2.18" targetFramework="portable-net45+wp80+MonoAndroid10+MonoTouch10" />
- <package id="SQLite.Net-PCL" version="2.0.2" targetFramework="portable-net45+wp80+MonoAndroid10+MonoTouch10" />
+ <package id="SQLite.Net-PCL" version="2.1.0" targetFramework="portable-net45+wp80" />
</packages>
@@ -202,7 +202,7 @@
<HintPath>..\packages\WPtoolkit.4.2013.08.16\lib\wp8\Microsoft.Phone.Controls.Toolkit.dll</HintPath>
</Reference>
<Reference Include="SQLite.Net">
- <HintPath>..\packages\SQLite.Net-PCL.2.0.2\lib\portable-net4+sl4+wp7+win8+monotouch+MonoAndroid\SQLite.Net.dll</HintPath>
+ <HintPath>..\packages\SQLite.Net-PCL.2.1.0\lib\portable-net4+sl4+wp7+win8+monotouch+MonoAndroid\SQLite.Net.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Autofac" version="3.3.0" targetFramework="wp80" />
- <package id="SQLite.Net-PCL" version="2.0.2" targetFramework="wp80" />
+ <package id="SQLite.Net-PCL" version="2.1.0" targetFramework="wp80" />
<package id="WPtoolkit" version="4.2013.08.16" targetFramework="wp80" />
</packages>
@@ -62,7 +62,7 @@
</ItemGroup>
<ItemGroup>
<Reference Include="SQLite.Net">
- <HintPath>..\packages\SQLite.Net-PCL.2.0.2\lib\portable-net4+sl4+wp7+win8+monotouch+MonoAndroid\SQLite.Net.dll</HintPath>
+ <HintPath>..\packages\SQLite.Net-PCL.2.1.0\lib\portable-net4+sl4+wp7+win8+monotouch+MonoAndroid\SQLite.Net.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http">
<HintPath>..\packages\Microsoft.Net.Http.2.2.18\lib\portable-net40+sl4+win8+wp71\System.Net.Http.dll</HintPath>
@@ -3,5 +3,5 @@
<package id="Microsoft.Bcl" version="1.1.6" targetFramework="portable-net45+wp80+MonoAndroid10+MonoTouch10" />
<package id="Microsoft.Bcl.Build" version="1.0.13" targetFramework="portable-net45+wp80+MonoAndroid10+MonoTouch10" />
<package id="Microsoft.Net.Http" version="2.2.18" targetFramework="portable-net45+wp80+MonoAndroid10+MonoTouch10" />
- <package id="SQLite.Net-PCL" version="2.0.2" targetFramework="portable-net45+wp80+MonoAndroid10+MonoTouch10" />
+ <package id="SQLite.Net-PCL" version="2.1.0" targetFramework="portable-net45+wp80" />
</packages>
@@ -64,6 +64,9 @@
<Reference Include="Autofac">
<HintPath>..\packages\Autofac.3.3.0\lib\portable-win+net40+sl50+wp8\Autofac.dll</HintPath>
</Reference>
+ <Reference Include="SQLite.Net">
+ <HintPath>..\packages\SQLite.Net-PCL.2.1.0\lib\portable-net4+sl4+wp7+win8+monotouch+MonoAndroid\SQLite.Net.dll</HintPath>
+ </Reference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
@@ -18,7 +18,7 @@ public string Name
}
set
{
- SetProperty(ref name, value);
+ Set<string>(ref name, value);
}
}
@@ -31,7 +31,7 @@ public string Field
}
set
{
- SetProperty(ref field, value);
+ Set<string>(ref field, value);
}
}
@@ -44,7 +44,7 @@ public string Value
}
set
{
- SetProperty(ref this.value, value);
+ Set<string>(ref this.value, value);
}
}
@@ -57,7 +57,7 @@ public bool IsSelected
}
set
{
- SetProperty(ref isSelected, value);
+ Set<bool>(ref isSelected, value);
}
}
@@ -21,7 +21,7 @@ public PersonViewModel SelectedPerson
}
set
{
- SetProperty(ref selectedPerson, value);
+ Set<PersonViewModel>(ref selectedPerson, value);
}
}
@@ -34,7 +34,7 @@ public PartyViewModel SelectedParty
}
set
{
- SetProperty(ref selectedParty, value);
+ Set<PartyViewModel>(ref selectedParty, value);
}
}
@@ -47,7 +47,7 @@ public ObservableCollection<FilterViewModel> Filters
}
set
{
- SetProperty(ref filters, value);
+ Set<ObservableCollection<FilterViewModel>>(ref filters, value);
}
}
@@ -60,7 +60,7 @@ public ObservableCollection<PartyViewModel> Parties
}
set
{
- SetProperty(ref parties, value);
+ Set<ObservableCollection<PartyViewModel>>(ref parties, value);
}
}
@@ -73,7 +73,7 @@ public ObservableCollection<PersonViewModel> People
}
set
{
- SetProperty(ref people, value);
+ Set<ObservableCollection<PersonViewModel>>(ref people, value);
}
}
@@ -86,7 +86,7 @@ public ObservableCollection<PersonViewModel> Following
}
set
{
- SetProperty(ref following, value);
+ Set<ObservableCollection<PersonViewModel>>(ref following, value);
}
}
@@ -97,16 +97,16 @@ public MainViewModel()
this.NetworkMonitor = GetService<INetworkService>();
this.NetworkMonitor.Initialize();
- this.showAboutInfoCommand = new DelegateCommand(ShowAboutInfo, null);
- this.getFiltersCommand = new DelegateCommand(GetFilters, null);
- this.getFollowingPeopleCommand = new DelegateCommand(GetFollowingPeopleAsync, null);
- this.getRandomPeopleCommand = new DelegateCommand(GetRandomPeopleAsync, null);
- this.getPartiesCommand = new DelegateCommand(GetPartiesAsync, null);
- this.getPeopleByPartyCommand = new DelegateCommand(GetPeopleByPartyAsync, null);
+ this.showAboutInfoCommand = new RelayCommand(ShowAboutInfo, null);
+ this.getFiltersCommand = new RelayCommand(GetFilters, null);
+ this.getFollowingPeopleCommand = new RelayCommand(GetFollowingPeopleAsync, null);
+ this.getRandomPeopleCommand = new RelayCommand(GetRandomPeopleAsync, null);
+ this.getPartiesCommand = new RelayCommand(GetPartiesAsync, null);
+ this.getPeopleByPartyCommand = new RelayCommand(GetPeopleByPartyAsync, null);
}
#region ShowAbout
- private DelegateCommand showAboutInfoCommand;
+ private RelayCommand showAboutInfoCommand;
public ICommand ShowAboutInfoCommand
{
get { return this.showAboutInfoCommand; }
@@ -18,7 +18,7 @@ public int Id
}
set
{
- SetProperty(ref id, value);
+ Set<int>(ref id, value);
}
}
@@ -31,7 +31,7 @@ public string Name
}
set
{
- SetProperty(ref name, value);
+ Set<string>(ref name, value);
}
}
@@ -44,7 +44,7 @@ public string Logo
}
set
{
- SetProperty(ref logo, value);
+ Set<string>(ref logo, value);
}
}
Oops, something went wrong.

0 comments on commit f98b0fe

Please sign in to comment.