コード例 #1
0
        public SparepartsViewModel(IFourWheelDataService dataService, IDialogService dialogService)
        {
            _DataService   = dataService;
            _DialogService = dialogService;
            LoadData();
            LoadCommands();

            Messenger.Default.Register <Task>(this, OnTaskReceived);
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        public CustomerAdminViewModel(IFourWheelDataService dataService, IDialogService dialogService)
        {
            _DataService = dataService;
            LoadData();
            LoadCommands();

            customerCollection         = new CollectionViewSource();
            customerCollection.Source  = customers;
            customerCollection.Filter += customerCollection_Filter;
        }
コード例 #4
0
        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);
        }