makes public the ViewModel's
This commit is contained in:
parent
7220c3dde2
commit
391d5d3bec
3 changed files with 19 additions and 14 deletions
|
|
@ -1,16 +1,11 @@
|
|||
using BookAStar.Interfaces;
|
||||
using BookAStar.Model.Workflow;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using XLabs.Forms.Mvvm;
|
||||
|
||||
namespace BookAStar.ViewModels
|
||||
{
|
||||
class BillingLineViewModel : ViewModel, IBillingLine
|
||||
public class BillingLineViewModel : ViewModel, IBillingLine
|
||||
{
|
||||
public BillingLineViewModel(BillingLine data)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,11 +6,17 @@ using System.Collections.ObjectModel;
|
|||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace BookAStar.ViewModels
|
||||
{
|
||||
class BookQueriesViewModel : XLabs.Forms.Mvvm.ViewModel
|
||||
public class BookQueriesViewModel : XLabs.Forms.Mvvm.ViewModel
|
||||
{
|
||||
public BookQueriesViewModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public ObservableCollection<BookQueryData> Queries
|
||||
{
|
||||
get
|
||||
|
|
@ -18,5 +24,10 @@ namespace BookAStar.ViewModels
|
|||
return DataManager.Current.BookQueries;
|
||||
}
|
||||
}
|
||||
|
||||
public ICommand RefreshQueries
|
||||
{
|
||||
get { return DataManager.Current.BookQueries; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,4 @@
|
|||
using BookAStar.Model.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
using XLabs.Forms.Mvvm;
|
||||
using BookAStar.Model.Workflow;
|
||||
using System.Collections.ObjectModel;
|
||||
|
|
@ -11,11 +6,15 @@ using BookAStar.Model;
|
|||
|
||||
namespace BookAStar.ViewModels
|
||||
{
|
||||
class EstimateViewModel : ViewModel
|
||||
public class EstimateViewModel : ViewModel
|
||||
{
|
||||
public EstimateViewModel(Estimate data)
|
||||
{
|
||||
estimate = data;
|
||||
|
||||
if (data.AttachedFiles == null) data.AttachedFiles = new List<string>();
|
||||
if (data.AttachedGraphicList == null) data.AttachedGraphicList = new List<string>();
|
||||
if (data.Bill == null) data.Bill = new List<BillingLine>();
|
||||
AttachedFiles = new ObservableCollection<string>(data.AttachedFiles);
|
||||
AttachedGraphicList = new ObservableCollection<string>(data.AttachedGraphicList);
|
||||
Bill = new ObservableCollection<BillingLine>(data.Bill);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue