public SparepartsViewModel(IFourWheelDataService dataService, IDialogService dialogService) { _DataService = dataService; _DialogService = dialogService; LoadData(); LoadCommands(); Messenger.Default.Register <Task>(this, OnTaskReceived); }
public TaskDetailsViewModel(IFourWheelDataService dataService, IDialogService dialogService) { _DataService = dataService; _DialogService = dialogService; // Receive UpdateTaskDetailsMessage send from TaskAdminWindow or spareparts catalog Messenger.Default.Register <UpdateTaskDetailsMessage>(this, OnTaskDetailsReceived); LoadCommands(); }
public CustomerAdminViewModel(IFourWheelDataService dataService, IDialogService dialogService) { _DataService = dataService; LoadData(); LoadCommands(); customerCollection = new CollectionViewSource(); customerCollection.Source = customers; customerCollection.Filter += customerCollection_Filter; }
public TaskAdminViewModel(IFourWheelDataService dataService, IDialogService dialogService) { _DataService = dataService; _DialogService = dialogService; LoadData(); LoadCommands(); // Listen/register the updatelistmessage object which will be send fro task details window whenever a task is updated or delete, then call OnUpdateListMessageReceived Messenger.Default.Register <UpdateListMessage>(this, OnUpdateListMessageReceived); }