-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #25: BUG - Prevent double postings update; Refactored PostingsViewModel for reuse; Minor code clean-up.
- Loading branch information
Showing
31 changed files
with
1,372 additions
and
857 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
// <copyright file="LoggedInMessage.cs" company="HD"> | ||
// Copyright (c) 2009-2011 nReez. All rights reserved. | ||
//------------------------------------------------------------ | ||
// <copyright file="LoggedInMessage.cs" company="nReez"> | ||
// Copyright (c) 2012 nReez. All rights reserved. | ||
// </copyright> | ||
// <author name="Andrew Levshoff" email="[email protected]" date="2011-03-24" /> | ||
//------------------------------------------------------------ | ||
|
||
namespace Fab.Client.Authentication | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
// <copyright file="LoggedOutMessage.cs" company="HD"> | ||
// Copyright (c) 2009-2011 nReez. All rights reserved. | ||
//------------------------------------------------------------ | ||
// <copyright file="LoggedOutMessage.cs" company="nReez"> | ||
// Copyright (c) 2012 nReez. All rights reserved. | ||
// </copyright> | ||
// <author name="Andrew Levshoff" email="[email protected]" date="2011-03-24" /> | ||
//------------------------------------------------------------ | ||
|
||
namespace Fab.Client.Authentication | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
// <copyright file="PersonalCornerViewModel.cs" company="nReez"> | ||
// Copyright (c) 2009-2011 nReez. All rights reserved. | ||
//------------------------------------------------------------ | ||
// <copyright file="RegisterationResult.cs" company="nReez"> | ||
// Copyright (c) 2012 nReez. All rights reserved. | ||
// </copyright> | ||
// <author name="Andrew Levshoff" email="[email protected]" date="2011-08-18" /> | ||
//------------------------------------------------------------ | ||
|
||
using System.ComponentModel.Composition; | ||
using Caliburn.Micro; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
//------------------------------------------------------------ | ||
// <copyright file="IRepository.cs" company="nReez"> | ||
// Copyright (c) 2009-2011 nReez. All rights reserved. | ||
// Copyright (c) 2011 nReez. All rights reserved. | ||
// </copyright> | ||
// <author name="Andrew Levshoff" email="[email protected]" date="2011-04-05" /> | ||
//------------------------------------------------------------ | ||
|
||
using Caliburn.Micro; | ||
using Fab.Client.Authentication; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
// <author name="Andrew Levshoff" email="[email protected]" date="2011-03-26" /> | ||
|
||
using System; | ||
using System.Collections.ObjectModel; | ||
using System.ComponentModel.Composition; | ||
using Caliburn.Micro; | ||
using Fab.Client.Authentication; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
//------------------------------------------------------------ | ||
// <copyright file="AccountsRepository.cs" company="nReez"> | ||
// Copyright (c) 2009-2011 nReez. All rights reserved. | ||
// Copyright (c) 2012 nReez. All rights reserved. | ||
// </copyright> | ||
// <author name="Andrey Levshov" email="[email protected]" date="2011-03-26" /> | ||
//------------------------------------------------------------ | ||
|
||
using System; | ||
using System.ComponentModel.Composition; | ||
|
@@ -76,6 +77,12 @@ public override void Download() | |
{ | ||
Entities.Clear(); | ||
Entities.AddRange(e.Result); | ||
// foreach (var item in e.Result) | ||
// { | ||
// Entities.Add(item); | ||
// } | ||
Execute.OnUIThread(() => EventAggregator.Publish(new AccountsUpdatedMessage | ||
{ | ||
Accounts = Entities | ||
|
@@ -109,7 +116,15 @@ public override void Download(int key) | |
{ | ||
var account = ByKey(key); | ||
var index = Entities.IndexOf(account); | ||
Entities[index] = e.Result; | ||
//Entities[index] = e.Result; | ||
Entities[index].AssetTypeId = e.Result.AssetTypeId; | ||
Entities[index].Balance = e.Result.Balance; | ||
Entities[index].Created = e.Result.Created; | ||
Entities[index].FirstPostingDate = e.Result.FirstPostingDate; | ||
Entities[index].Id = e.Result.Id; | ||
Entities[index].LastPostingDate = e.Result.LastPostingDate; | ||
Entities[index].Name = e.Result.Name; | ||
Entities[index].PostingsCount = e.Result.PostingsCount; | ||
Execute.OnUIThread(() => EventAggregator.Publish(new AccountUpdatedMessage | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
//------------------------------------------------------------ | ||
// <copyright file="CategoriesRepository.cs" company="nReez"> | ||
// Copyright (c) 2009-2011 nReez. All rights reserved. | ||
// Copyright (c) 2012 nReez. All rights reserved. | ||
// </copyright> | ||
// <author name="Andrey Levshov" email="[email protected]" date="2011-03-26" /> | ||
//------------------------------------------------------------ | ||
|
||
using System; | ||
using System.ComponentModel.Composition; | ||
|
@@ -76,6 +77,12 @@ public override void Download() | |
{ | ||
Entities.Clear(); | ||
Entities.AddRange(e.Result); | ||
// | ||
// foreach (var item in e.Result) | ||
// { | ||
// Entities.Add(item); | ||
// } | ||
Execute.OnUIThread(() => EventAggregator.Publish(new CategoriesUpdatedMessage | ||
{ | ||
Categories = Entities | ||
|
5 changes: 3 additions & 2 deletions
5
src/Fab.Client/MoneyTracker/Categories/CategoriesViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
//------------------------------------------------------------ | ||
// <copyright file="CategoriesViewModel.cs" company="nReez"> | ||
// Copyright (c) 2009-2011 nReez. All rights reserved. | ||
// Copyright (c) 2012 nReez. All rights reserved. | ||
// </copyright> | ||
// <author name="Andrey Levshov" email="[email protected]" date="2010-04-12" /> | ||
//------------------------------------------------------------ | ||
|
||
using System.ComponentModel.Composition; | ||
using System.Linq; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.