|
|
|
|
@ -12,41 +12,41 @@ namespace Gremlin.MVVM
|
|
|
|
|
{
|
|
|
|
|
public class ShellViewModel : PropertyChangedBase
|
|
|
|
|
{
|
|
|
|
|
private ContactViewModel _selectedContact;
|
|
|
|
|
private ContactViewModel _contactVM;
|
|
|
|
|
private ObservableCollection<ContactViewModel> _contacts;
|
|
|
|
|
private QuoteViewModel _quoteVM;
|
|
|
|
|
private string _searchContact;
|
|
|
|
|
private ContactViewModel selectedContact;
|
|
|
|
|
private ContactViewModel contactVM;
|
|
|
|
|
private ObservableCollection<ContactViewModel> contacts;
|
|
|
|
|
private QuoteViewModel quoteVM;
|
|
|
|
|
private string searchContact;
|
|
|
|
|
|
|
|
|
|
public string SearchContact {
|
|
|
|
|
get => _searchContact;
|
|
|
|
|
get => searchContact;
|
|
|
|
|
set {
|
|
|
|
|
_searchContact = value;
|
|
|
|
|
searchContact = value;
|
|
|
|
|
NotifyOfPropertyChange(() => SearchContact);
|
|
|
|
|
Contacts = GetContactsVM(_searchContact);
|
|
|
|
|
Contacts = GetContactsVM(searchContact);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ContactViewModel ContactVM {
|
|
|
|
|
get => _contactVM;
|
|
|
|
|
get => contactVM;
|
|
|
|
|
set {
|
|
|
|
|
_contactVM = value;
|
|
|
|
|
contactVM = value;
|
|
|
|
|
NotifyOfPropertyChange(() => ContactVM);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public QuoteViewModel QuoteVM {
|
|
|
|
|
get => _quoteVM;
|
|
|
|
|
get => quoteVM;
|
|
|
|
|
set {
|
|
|
|
|
_quoteVM = value;
|
|
|
|
|
quoteVM = value;
|
|
|
|
|
NotifyOfPropertyChange(() => QuoteVM);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ContactViewModel SelectedContact {
|
|
|
|
|
get => _selectedContact;
|
|
|
|
|
get => selectedContact;
|
|
|
|
|
set {
|
|
|
|
|
_selectedContact = value;
|
|
|
|
|
selectedContact = value;
|
|
|
|
|
NotifyOfPropertyChange(() => SelectedContact);
|
|
|
|
|
QuoteVM.Recipient = value;
|
|
|
|
|
NotifyOfPropertyChange(() => QuoteVM.Recipient);
|
|
|
|
|
@ -54,9 +54,9 @@ namespace Gremlin.MVVM
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ObservableCollection<ContactViewModel> Contacts {
|
|
|
|
|
get => _contacts;
|
|
|
|
|
get => contacts;
|
|
|
|
|
set {
|
|
|
|
|
_contacts = value;
|
|
|
|
|
contacts = value;
|
|
|
|
|
NotifyOfPropertyChange(() => Contacts);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|